Documentation ¶
Index ¶
- Variables
- func MakeGetGlobalWinrateEndpoint(s Service) endpoint.Endpoint
- func MakeGetLeaderBoardEndpoint(s Service) endpoint.Endpoint
- func MakeGetPlayerActivityTODEndpoint(s Service) endpoint.Endpoint
- func MakeGetPlayerInfoEndpoint(s Service) endpoint.Endpoint
- func MakeGetRatingDistributionEndpoint(s Service) endpoint.Endpoint
- func MakeGetUnitsEndpoint(s Service) endpoint.Endpoint
- func MakeHTTPHandler(s Service) http.Handler
- func MakePostCheckReplaysEndpoint(s Service) endpoint.Endpoint
- func MakePostPlayerActivityEndpoint(s Service) endpoint.Endpoint
- func MakePostPlayerRatingEndpoint(s Service) endpoint.Endpoint
- func MakePostPlayerRecordEndpoint(s Service) endpoint.Endpoint
- func MakePostPlayerSearchEndpoint(s Service) endpoint.Endpoint
- func MakePostPlayerUnitEndpoint(s Service) endpoint.Endpoint
- func MakePostReplaysSearchEndpoint(s Service) endpoint.Endpoint
- func MakePostReplaysSubmitEndpoint(s Service) endpoint.Endpoint
- type Endpoints
- type Limit
- type Service
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MakeGetUnitsEndpoint ¶
func MakeHTTPHandler ¶
Types ¶
type Endpoints ¶
type Endpoints struct { PostReplaysSubmitEndpoint endpoint.Endpoint PostReplaysSearchEndpoint endpoint.Endpoint GetRatingDistributionEndpoint endpoint.Endpoint GetLeaderBoardEndpoint endpoint.Endpoint GetGlobalWinrateEndpoint endpoint.Endpoint GetUnitsEndpoint endpoint.Endpoint PostPlayerSearchEndpoint endpoint.Endpoint PostPlayerActivityEndpoint endpoint.Endpoint GetPlayerActivityTODEndpoint endpoint.Endpoint GetPlayerInfoEndpoint endpoint.Endpoint PostPlayerRatingEndpoint endpoint.Endpoint PostPlayerRecordEndpoint endpoint.Endpoint PostPlayerUnitEndpoint endpoint.Endpoint PostCheckReplaysEndpoint endpoint.Endpoint }
func MakeServerEndpoints ¶
type Service ¶
type Service interface { SubmitReplays(ctx context.Context, codes []string) error QueryReplays(ctx context.Context, query models.ReplayQuery) ([]models.Replay, error) GetPlayerInfo(ctx context.Context, name string) (models.PlayerInfo, error) GetLeaderBoard(ctx context.Context, limit int) ([]models.PlayerInfo, error) SearchPlayer(ctx context.Context, name string) ([]string, error) GetGlobalWinrate(ctx context.Context) (models.WinRate, error) GetUnitsWinRate(ctx context.Context, name string) ([]models.KeyedGameRecord, error) // * means all, selector means filter GetCheckReplay(ctx context.Context, codes []string) (models.CheckReplay, error) GetRatingDistribution(ctx context.Context) (models.RatingDistributionWrapper, error) // GetPlayerRating `lower` and `upper` are seconds in Unix time GetPlayerRating(ctx context.Context, name string, constrain models.RangeConstrain, datapoints int) (models.PlayerRatingTimeSeries, error) GetPlayerActivity(ctx context.Context, name string, constrain models.RangeConstrain) (models.PlayerActivityCalendar, error) GetPlayerUnitWinRate(ctx context.Context, playerName string, constrain models.RangeConstrain, limit int) ([]models.KeyedGameRecord, error) GetPlayerTimeOfDayActivity(ctx context.Context, name string) (models.TimeOfDayActivity, error) GetPlayerRecord(ctx context.Context, name string) (models.PlayerRecord, error) }
Click to show internal directories.
Click to hide internal directories.