Documentation ¶
Index ¶
- func JoinPredicates(lhs string, operator string, rhs string) string
- type Code
- type GlobalResult
- type RatingDataPoint
- type SearchResultWrapper
- type Service
- func (p Service) GetCheckReplay(ctx context.Context, codes []string) (models.CheckReplay, error)
- func (p Service) GetGlobalWinrate(ctx context.Context) (models.WinRate, error)
- func (p Service) GetLeaderBoard(ctx context.Context, limit int) ([]models.PlayerInfo, error)
- func (p Service) GetPlayerActivity(ctx context.Context, name string, constrain models.RangeConstrain) (models.PlayerActivityCalendar, error)
- func (p Service) GetPlayerInfo(ctx context.Context, name string) (models.PlayerInfo, error)
- func (p Service) GetPlayerRating(ctx context.Context, name string, constrain models.RangeConstrain, ...) (models.PlayerRatingTimeSeries, error)
- func (p Service) GetPlayerRecord(ctx context.Context, name string) (models.PlayerRecord, error)
- func (p Service) GetPlayerTimeOfDayActivity(ctx context.Context, name string) (models.TimeOfDayActivity, error)
- func (p Service) GetPlayerUnitWinRate(ctx context.Context, playerName string, constrain models.RangeConstrain, ...) ([]models.KeyedGameRecord, error)
- func (p Service) GetRatingDistribution(ctx context.Context) (models.RatingDistributionWrapper, error)
- func (p Service) GetUnitsWinRate(ctx context.Context, unitName string) ([]models.KeyedGameRecord, error)
- func (p Service) QueryReplays(ctx context.Context, query models.ReplayQuery) ([]models.Replay, error)
- func (p Service) SearchPlayer(ctx context.Context, name string) ([]string, error)
- func (p Service) SubmitReplays(ctx context.Context, codes []string) error
- type TimeOfDayDataPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlobalResult ¶
type RatingDataPoint ¶
type SearchResultWrapper ¶
type SearchResultWrapper struct {
Name string `bigquery:"name"`
}
type Service ¶
func InitGCPBackend ¶
func NewGcpProvider ¶
func (Service) GetCheckReplay ¶
func (Service) GetGlobalWinrate ¶
func (Service) GetLeaderBoard ¶
func (Service) GetPlayerActivity ¶
func (p Service) GetPlayerActivity(ctx context.Context, name string, constrain models.RangeConstrain) (models.PlayerActivityCalendar, error)
func (Service) GetPlayerInfo ¶
func (Service) GetPlayerRating ¶
func (p Service) GetPlayerRating(ctx context.Context, name string, constrain models.RangeConstrain, datapoints int) (models.PlayerRatingTimeSeries, error)
func (Service) GetPlayerRecord ¶
func (Service) GetPlayerTimeOfDayActivity ¶
func (Service) GetPlayerUnitWinRate ¶
func (p Service) GetPlayerUnitWinRate(ctx context.Context, playerName string, constrain models.RangeConstrain, limit int) ([]models.KeyedGameRecord, error)
func (Service) GetRatingDistribution ¶
func (Service) GetUnitsWinRate ¶
func (Service) QueryReplays ¶
func (Service) SearchPlayer ¶
SearchPlayer Could update this with better search algorithm https://mark-mccracken.medium.com/bigquery-fuzzy-matching-functions-c4f051cbe2bb
type TimeOfDayDataPoint ¶
Click to show internal directories.
Click to hide internal directories.