Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Me *MeService
// contains filtered or unexported fields
}
Client is an OGS client for making OGS API requests.
type Game ¶
type Game struct {
ID int `json:"id"`
Name string `json:"name"`
Players Players `json:"players"`
Outcome string `json:"outcome"`
BlackLost bool `json:"black_lost"`
WhiteLost bool `json:"white_lost"`
StartedAt string `json:"started"`
EndedAt string `json:"ended"`
}
Game represents basic game information.
func (*Game) HasBlackWon ¶
HasBlackWon returns true if black has won the game.
func (*Game) HasWhiteWon ¶
HasWhiteWon returns true if white has won the game.
type MeService ¶
type MeService struct {
// contains filtered or unexported fields
}
MeService provides method for accessing resources under /me endpoint of the OGS API