srcom_api

package
v0.0.0-...-8370ac0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient interface {
	Get(url string) ([]byte, error)
}

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) GetDeveloper

func (c *SrcomV1Client) GetDeveloper(developerId string) ([]byte, error)

func (*SrcomV1Client) GetGame

func (c *SrcomV1Client) GetGame(gameId string) ([]byte, error)

func (*SrcomV1Client) GetGameCategoryLeaderboard

func (c *SrcomV1Client) GetGameCategoryLeaderboard(gameId, categoryId string) ([]byte, error)

func (*SrcomV1Client) GetGameLevelCategoryLeaderboard

func (c *SrcomV1Client) GetGameLevelCategoryLeaderboard(gameId, levelId, categoryId string) ([]byte, error)

func (*SrcomV1Client) GetGameList

func (c *SrcomV1Client) GetGameList(pageNumber int) ([]byte, error)

func (*SrcomV1Client) GetLevel

func (c *SrcomV1Client) GetLevel(levelId string) ([]byte, error)

func (*SrcomV1Client) GetRunsByUser

func (c *SrcomV1Client) GetRunsByUser(userId string, pageNumber int) ([]byte, error)

func (*SrcomV1Client) GetUser

func (c *SrcomV1Client) GetUser(userId string) ([]byte, error)

type SrcomV2Client

type SrcomV2Client struct {
	// contains filtered or unexported fields
}

func NewSrcomV2Client

func NewSrcomV2Client(client HttpClient) *SrcomV2Client

func (*SrcomV2Client) GetGame

func (c *SrcomV2Client) GetGame(gameID string) ([]byte, error)

func (*SrcomV2Client) GetGameCategoryLeaderboard

func (c *SrcomV2Client) GetGameCategoryLeaderboard(gameID, categoryID string, pageNumber int) ([]byte, error)

func (*SrcomV2Client) GetGameCategoryLevelWorldRecordHistory

func (c *SrcomV2Client) GetGameCategoryLevelWorldRecordHistory(gameID, categoryID, levelID string) ([]byte, error)

func (*SrcomV2Client) GetGameCategoryVariableValueLeaderboard

func (c *SrcomV2Client) GetGameCategoryVariableValueLeaderboard(
	gameID, categoryID, variableID, valueID string,
	pageNumber int,
) ([]byte, error)

func (*SrcomV2Client) GetGameCategoryWorldRecordHistory

func (c *SrcomV2Client) GetGameCategoryWorldRecordHistory(gameID, categoryID string) ([]byte, error)

func (*SrcomV2Client) GetGameList

func (c *SrcomV2Client) GetGameList(pageNumber int) ([]byte, error)

func (*SrcomV2Client) GetGameSummary

func (c *SrcomV2Client) GetGameSummary(gameurl string) ([]byte, error)

func (*SrcomV2Client) GetUser

func (c *SrcomV2Client) GetUser(userID string) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL