replaced old module path in source

This commit is contained in:
2023-03-03 20:16:12 +01:00
parent f7903d1781
commit ed283c92f3
53 changed files with 162 additions and 162 deletions

View File

@@ -3,8 +3,6 @@ package csgo
import ( import (
"context" "context"
"fmt" "fmt"
"git.harting.dev/csgowtf/csgowtfd/ent"
"git.harting.dev/csgowtf/csgowtfd/utils"
"github.com/an0nfunc/go-steam/v3" "github.com/an0nfunc/go-steam/v3"
"github.com/an0nfunc/go-steam/v3/csgo/protocol/protobuf" "github.com/an0nfunc/go-steam/v3/csgo/protocol/protobuf"
"github.com/an0nfunc/go-steam/v3/protocol/gamecoordinator" "github.com/an0nfunc/go-steam/v3/protocol/gamecoordinator"
@@ -16,6 +14,8 @@ import (
"golang.org/x/time/rate" "golang.org/x/time/rate"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
"os" "os"
"somegit.dev/csgowtf/csgowtfd/ent"
"somegit.dev/csgowtf/csgowtfd/utils"
"strings" "strings"
"sync" "sync"
"time" "time"

View File

@@ -7,9 +7,6 @@ import (
"encoding/gob" "encoding/gob"
"errors" "errors"
"fmt" "fmt"
"git.harting.dev/csgowtf/csgowtfd/ent"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/utils"
"github.com/aclements/go-moremath/stats" "github.com/aclements/go-moremath/stats"
"github.com/golang/geo/r2" "github.com/golang/geo/r2"
"github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs" "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
@@ -18,6 +15,9 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"io" "io"
"net/http" "net/http"
"somegit.dev/csgowtf/csgowtfd/ent"
"somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"somegit.dev/csgowtf/csgowtfd/utils"
"strings" "strings"
"time" "time"
) )

View File

@@ -8,19 +8,19 @@ import (
"fmt" "fmt"
"log" "log"
"git.harting.dev/csgowtf/csgowtfd/ent/migrate" "somegit.dev/csgowtf/csgowtfd/ent/migrate"
"entgo.io/ent" "entgo.io/ent"
"entgo.io/ent/dialect" "entgo.io/ent/dialect"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// Client is the client that holds all ent builders. // Client is the client that holds all ent builders.

View File

@@ -11,13 +11,13 @@ import (
"entgo.io/ent" "entgo.io/ent"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// ent aliases to avoid import conflicts in user's code. // ent aliases to avoid import conflicts in user's code.

View File

@@ -5,12 +5,12 @@ package enttest
import ( import (
"context" "context"
"git.harting.dev/csgowtf/csgowtfd/ent" "somegit.dev/csgowtf/csgowtfd/ent"
// required by schema hooks. // required by schema hooks.
_ "git.harting.dev/csgowtf/csgowtfd/ent/runtime" _ "somegit.dev/csgowtf/csgowtfd/ent/runtime"
"entgo.io/ent/dialect/sql/schema" "entgo.io/ent/dialect/sql/schema"
"git.harting.dev/csgowtf/csgowtfd/ent/migrate" "somegit.dev/csgowtf/csgowtfd/ent/migrate"
) )
type ( type (

View File

@@ -6,7 +6,7 @@ import (
"context" "context"
"fmt" "fmt"
"git.harting.dev/csgowtf/csgowtfd/ent" "somegit.dev/csgowtf/csgowtfd/ent"
) )
// The MatchFunc type is an adapter to allow the use of ordinary // The MatchFunc type is an adapter to allow the use of ordinary

View File

@@ -8,7 +8,7 @@ import (
"time" "time"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
) )
// Match is the model entity for the Match schema. // Match is the model entity for the Match schema.

View File

@@ -7,7 +7,7 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// ID filters vertices based on their ID field. // ID filters vertices based on their ID field.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
) )
// MatchCreate is the builder for creating a Match entity. // MatchCreate is the builder for creating a Match entity.

View File

@@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// MatchDelete is the builder for deleting a Match entity. // MatchDelete is the builder for deleting a Match entity.

View File

@@ -11,10 +11,10 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// MatchQuery is the builder for querying Match entities. // MatchQuery is the builder for querying Match entities.

View File

@@ -11,10 +11,10 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// MatchUpdate is the builder for updating Match entities. // MatchUpdate is the builder for updating Match entities.

View File

@@ -7,9 +7,9 @@ import (
"strings" "strings"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
) )
// MatchPlayer is the model entity for the MatchPlayer schema. // MatchPlayer is the model entity for the MatchPlayer schema.

View File

@@ -5,7 +5,7 @@ package matchplayer
import ( import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// ID filters vertices based on their ID field. // ID filters vertices based on their ID field.

View File

@@ -9,13 +9,13 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// MatchPlayerCreate is the builder for creating a MatchPlayer entity. // MatchPlayerCreate is the builder for creating a MatchPlayer entity.

View File

@@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// MatchPlayerDelete is the builder for deleting a MatchPlayer entity. // MatchPlayerDelete is the builder for deleting a MatchPlayer entity.

View File

@@ -11,14 +11,14 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// MatchPlayerQuery is the builder for querying MatchPlayer entities. // MatchPlayerQuery is the builder for querying MatchPlayer entities.

View File

@@ -10,14 +10,14 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// MatchPlayerUpdate is the builder for updating MatchPlayer entities. // MatchPlayerUpdate is the builder for updating MatchPlayer entities.

View File

@@ -7,8 +7,8 @@ import (
"strings" "strings"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
) )
// Messages is the model entity for the Messages schema. // Messages is the model entity for the Messages schema.

View File

@@ -5,7 +5,7 @@ package messages
import ( import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// ID filters vertices based on their ID field. // ID filters vertices based on their ID field.

View File

@@ -9,8 +9,8 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
) )
// MessagesCreate is the builder for creating a Messages entity. // MessagesCreate is the builder for creating a Messages entity.

View File

@@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// MessagesDelete is the builder for deleting a Messages entity. // MessagesDelete is the builder for deleting a Messages entity.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// MessagesQuery is the builder for querying Messages entities. // MessagesQuery is the builder for querying Messages entities.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// MessagesUpdate is the builder for updating Messages entities. // MessagesUpdate is the builder for updating Messages entities.

View File

@@ -11,14 +11,14 @@ import (
"entgo.io/ent" "entgo.io/ent"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages" "somegit.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
const ( const (

View File

@@ -8,7 +8,7 @@ import (
"time" "time"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
) )
// Player is the model entity for the Player schema. // Player is the model entity for the Player schema.

View File

@@ -7,7 +7,7 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// ID filters vertices based on their ID field. // ID filters vertices based on their ID field.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
) )
// PlayerCreate is the builder for creating a Player entity. // PlayerCreate is the builder for creating a Player entity.

View File

@@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// PlayerDelete is the builder for deleting a Player entity. // PlayerDelete is the builder for deleting a Player entity.

View File

@@ -11,10 +11,10 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// PlayerQuery is the builder for querying Player entities. // PlayerQuery is the builder for querying Player entities.

View File

@@ -11,10 +11,10 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// PlayerUpdate is the builder for updating Player entities. // PlayerUpdate is the builder for updating Player entities.

View File

@@ -7,8 +7,8 @@ import (
"strings" "strings"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
) )
// RoundStats is the model entity for the RoundStats schema. // RoundStats is the model entity for the RoundStats schema.

View File

@@ -5,7 +5,7 @@ package roundstats
import ( import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// ID filters vertices based on their ID field. // ID filters vertices based on their ID field.

View File

@@ -9,8 +9,8 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
) )
// RoundStatsCreate is the builder for creating a RoundStats entity. // RoundStatsCreate is the builder for creating a RoundStats entity.

View File

@@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
) )
// RoundStatsDelete is the builder for deleting a RoundStats entity. // RoundStatsDelete is the builder for deleting a RoundStats entity.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
) )
// RoundStatsQuery is the builder for querying RoundStats entities. // RoundStatsQuery is the builder for querying RoundStats entities.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats" "somegit.dev/csgowtf/csgowtfd/ent/roundstats"
) )
// RoundStatsUpdate is the builder for updating RoundStats entities. // RoundStatsUpdate is the builder for updating RoundStats entities.

View File

@@ -5,9 +5,9 @@ package ent
import ( import (
"time" "time"
"git.harting.dev/csgowtf/csgowtfd/ent/match" "somegit.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/player" "somegit.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/schema" "somegit.dev/csgowtf/csgowtfd/ent/schema"
) )
// The init function reads all schema descriptors with runtime code // The init function reads all schema descriptors with runtime code

View File

@@ -2,7 +2,7 @@
package runtime package runtime
// The schema-stitching logic is generated in git.harting.dev/csgowtf/csgowtfd/ent/runtime.go // The schema-stitching logic is generated in somegit.dev/csgowtf/csgowtfd/ent/runtime.go
const ( const (
Version = "v0.11.9" // Version of ent codegen. Version = "v0.11.9" // Version of ent codegen.

View File

@@ -7,8 +7,8 @@ import (
"strings" "strings"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
) )
// Spray is the model entity for the Spray schema. // Spray is the model entity for the Spray schema.

View File

@@ -5,7 +5,7 @@ package spray
import ( import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// ID filters vertices based on their ID field. // ID filters vertices based on their ID field.

View File

@@ -9,8 +9,8 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
) )
// SprayCreate is the builder for creating a Spray entity. // SprayCreate is the builder for creating a Spray entity.

View File

@@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
) )
// SprayDelete is the builder for deleting a Spray entity. // SprayDelete is the builder for deleting a Spray entity.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
) )
// SprayQuery is the builder for querying Spray entities. // SprayQuery is the builder for querying Spray entities.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/spray" "somegit.dev/csgowtf/csgowtfd/ent/spray"
) )
// SprayUpdate is the builder for updating Spray entities. // SprayUpdate is the builder for updating Spray entities.

View File

@@ -7,8 +7,8 @@ import (
"strings" "strings"
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// Weapon is the model entity for the Weapon schema. // Weapon is the model entity for the Weapon schema.

View File

@@ -5,7 +5,7 @@ package weapon
import ( import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
) )
// ID filters vertices based on their ID field. // ID filters vertices based on their ID field.

View File

@@ -9,8 +9,8 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// WeaponCreate is the builder for creating a Weapon entity. // WeaponCreate is the builder for creating a Weapon entity.

View File

@@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// WeaponDelete is the builder for deleting a Weapon entity. // WeaponDelete is the builder for deleting a Weapon entity.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// WeaponQuery is the builder for querying Weapon entities. // WeaponQuery is the builder for querying Weapon entities.

View File

@@ -10,9 +10,9 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field" "entgo.io/ent/schema/field"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer" "somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/predicate" "somegit.dev/csgowtf/csgowtfd/ent/predicate"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon" "somegit.dev/csgowtf/csgowtfd/ent/weapon"
) )
// WeaponUpdate is the builder for updating Weapon entities. // WeaponUpdate is the builder for updating Weapon entities.

16
main.go
View File

@@ -9,14 +9,6 @@ import (
"errors" "errors"
"flag" "flag"
"fmt" "fmt"
"git.harting.dev/csgowtf/csgowtfd/csgo"
"git.harting.dev/csgowtf/csgowtfd/ent"
"git.harting.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/messages"
"git.harting.dev/csgowtf/csgowtfd/ent/migrate"
"git.harting.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/utils"
"github.com/gin-contrib/cors" "github.com/gin-contrib/cors"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/go-redis/cache/v8" "github.com/go-redis/cache/v8"
@@ -33,6 +25,14 @@ import (
"os" "os"
"os/signal" "os/signal"
"somegit.dev/anonfunc/gositemap" "somegit.dev/anonfunc/gositemap"
"somegit.dev/csgowtf/csgowtfd/csgo"
"somegit.dev/csgowtf/csgowtfd/ent"
"somegit.dev/csgowtf/csgowtfd/ent/match"
"somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"somegit.dev/csgowtf/csgowtfd/ent/messages"
"somegit.dev/csgowtf/csgowtfd/ent/migrate"
"somegit.dev/csgowtf/csgowtfd/ent/player"
"somegit.dev/csgowtf/csgowtfd/utils"
"strconv" "strconv"
"strings" "strings"
"syscall" "syscall"

View File

@@ -6,13 +6,6 @@ import (
"entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql"
"errors" "errors"
"fmt" "fmt"
"git.harting.dev/csgowtf/csgowtfd/ent"
"git.harting.dev/csgowtf/csgowtfd/ent/match"
"git.harting.dev/csgowtf/csgowtfd/ent/matchplayer"
"git.harting.dev/csgowtf/csgowtfd/ent/player"
"git.harting.dev/csgowtf/csgowtfd/ent/roundstats"
"git.harting.dev/csgowtf/csgowtfd/ent/spray"
"git.harting.dev/csgowtf/csgowtfd/ent/weapon"
"github.com/an0nfunc/go-steamapi" "github.com/an0nfunc/go-steamapi"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"golang.org/x/time/rate" "golang.org/x/time/rate"
@@ -22,6 +15,13 @@ import (
"net/url" "net/url"
"path" "path"
"regexp" "regexp"
"somegit.dev/csgowtf/csgowtfd/ent"
"somegit.dev/csgowtf/csgowtfd/ent/match"
"somegit.dev/csgowtf/csgowtfd/ent/matchplayer"
"somegit.dev/csgowtf/csgowtfd/ent/player"
"somegit.dev/csgowtf/csgowtfd/ent/roundstats"
"somegit.dev/csgowtf/csgowtfd/ent/spray"
"somegit.dev/csgowtf/csgowtfd/ent/weapon"
"sort" "sort"
"strconv" "strconv"
"strings" "strings"