groovestats

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) NewSession

func (client *Client) NewSession(request *fsipc.GsNewSessionRequest) (*NewSessionResponse, error)

func (*Client) PlayerLeaderboards

func (client *Client) PlayerLeaderboards(request *fsipc.GsPlayerLeaderboardsRequest) (*PlayerLeaderboardsResponse, error)

func (*Client) PlayerScores

func (client *Client) PlayerScores(request *fsipc.GsPlayerScoresRequest) (*PlayerScoresResponse, error)

func (*Client) ScoreSubmit

func (client *Client) ScoreSubmit(request *fsipc.GsScoreSubmitRequest) (*ScoreSubmitResponse, error)

type DisabledError

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

func (*DisabledError) Error

func (e *DisabledError) Error() string

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
	Error   string `json:"error"`
}

type NewSessionResponse

type NewSessionResponse struct {
	ActiveEvents []struct {
		Name      string `json:"name"`
		ShortName string `json:"shortName"`
		Url       string `json:"url"`
	} `json:"activeEvents"`

	ServicesAllowed struct {
		ScoreSubmit        bool `json:"scoreSubmit"`
		PlayerScores       bool `json:"playerScores"`
		PlayerLeaderboards bool `json:"playerLeaderboards"`
	} `json:"servicesAllowed"`

	ServicesResult string `json:"servicesResult"`
}

type PlayerLeaderboardsResponse

type PlayerLeaderboardsResponse struct {
	Player1 *playerLeaderboardsPlayerData `json:"player1"`
	Player2 *playerLeaderboardsPlayerData `json:"player2"`
}

type PlayerScoresResponse

type PlayerScoresResponse struct {
	Player1 *playerScoresPlayerData `json:"player1"`
	Player2 *playerScoresPlayerData `json:"player2"`

	// added by the launcher
	Cached bool `json:"cached"`
}

type ScoreSubmitResponse

type ScoreSubmitResponse struct {
	Player1 *scoreSubmitPlayerData `json:"player1"`
	Player2 *scoreSubmitPlayerData `json:"player2"`
}

Jump to

Keyboard shortcuts

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