Documentation
¶
Index ¶
- Variables
- type HttpClient
- type SrcomV1Client
- func (c *SrcomV1Client) GetCategory(categoryId string) ([]byte, error)
- func (c *SrcomV1Client) GetDeveloperList(pageNumber int) ([]byte, error)
- func (c *SrcomV1Client) GetEngineList(pageNumber int) ([]byte, error)
- func (c *SrcomV1Client) GetGame(gameId string) ([]byte, error)
- func (c *SrcomV1Client) GetGameList(pageNumber int) ([]byte, error)
- func (c *SrcomV1Client) GetGenreList(pageNumber int) ([]byte, error)
- func (c *SrcomV1Client) GetLeaderboardByGameCategory(gameId, categoryId string) ([]byte, error)
- func (c *SrcomV1Client) GetLeaderboardByGameLevelCategory(gameId, levelId, categoryId string) ([]byte, error)
- func (c *SrcomV1Client) GetLeaderboardByVariables(gameId, categoryId string, levelId *string, variables, values []string) ([]byte, error)
- func (c *SrcomV1Client) GetLevel(levelId string) ([]byte, error)
- func (c *SrcomV1Client) GetPlatformList(pageNumber int) ([]byte, error)
- func (c *SrcomV1Client) GetPublisherList(pageNumber int) ([]byte, error)
- func (c *SrcomV1Client) GetRunsByUser(userId string, pageNumber int) ([]byte, error)
- func (c *SrcomV1Client) GetUser(userId string) ([]byte, error)
- type SrcomV2Client
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultV1Client = NewSrcomV1Client( http_client.NewHttpClient( http_client.WithLogging(), http_client.WithRetry(100, 5), http_client.WithCache(newCache()), ), )
View Source
var DefaultV2Client = NewSrcomV2Client( http_client.NewHttpClient( http_client.WithLogging(), http_client.WithRetry(1_000, 3), http_client.WithCache(newCache()), ), )
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type SrcomV1Client ¶
type SrcomV1Client struct {
// contains filtered or unexported fields
}
func NewSrcomV1Client ¶
func NewSrcomV1Client(client HttpClient) *SrcomV1Client
func (*SrcomV1Client) GetCategory ¶
func (c *SrcomV1Client) GetCategory(categoryId string) ([]byte, error)
func (*SrcomV1Client) GetDeveloperList ¶
func (c *SrcomV1Client) GetDeveloperList(pageNumber int) ([]byte, error)
func (*SrcomV1Client) GetEngineList ¶
func (c *SrcomV1Client) GetEngineList(pageNumber int) ([]byte, error)
func (*SrcomV1Client) GetGameList ¶
func (c *SrcomV1Client) GetGameList(pageNumber int) ([]byte, error)
func (*SrcomV1Client) GetGenreList ¶
func (c *SrcomV1Client) GetGenreList(pageNumber int) ([]byte, error)
func (*SrcomV1Client) GetLeaderboardByGameCategory ¶
func (c *SrcomV1Client) GetLeaderboardByGameCategory(gameId, categoryId string) ([]byte, error)
func (*SrcomV1Client) GetLeaderboardByGameLevelCategory ¶
func (c *SrcomV1Client) GetLeaderboardByGameLevelCategory(gameId, levelId, categoryId string) ([]byte, error)
func (*SrcomV1Client) GetLeaderboardByVariables ¶
func (*SrcomV1Client) GetPlatformList ¶
func (c *SrcomV1Client) GetPlatformList(pageNumber int) ([]byte, error)
func (*SrcomV1Client) GetPublisherList ¶
func (c *SrcomV1Client) GetPublisherList(pageNumber int) ([]byte, error)
func (*SrcomV1Client) GetRunsByUser ¶
func (c *SrcomV1Client) GetRunsByUser(userId string, pageNumber int) ([]byte, error)
type SrcomV2Client ¶
type SrcomV2Client struct {
// contains filtered or unexported fields
}
func NewSrcomV2Client ¶
func NewSrcomV2Client(client HttpClient) *SrcomV2Client
func (*SrcomV2Client) GetGameList ¶
func (c *SrcomV2Client) GetGameList(pageNumber int) ([]byte, error)
func (*SrcomV2Client) GetGameRecordHistory ¶
Click to show internal directories.
Click to hide internal directories.