Versions in this module Expand all Collapse all v0 v0.1.2 Jun 14, 2026 v0.1.1 Jun 14, 2026 Changes in this version type Client + func (c *Client) GetPuzzleByID(ctx context.Context, id string) (*Puzzle, error) type Game + Black string + White string + type TopPlayer struct + Rating int + Title string + Username string type User + DrawCount int + LossCount int + URL string v0.1.0 Jun 14, 2026 Changes in this version + const BaseURL + const DefaultUserAgent + const Host + type Client struct + func NewClient(cfg Config) *Client + func (c *Client) GetGames(ctx context.Context, username string, limit int, perfType string) ([]Game, error) + func (c *Client) GetLeaderboard(ctx context.Context, nb int, perfType string) ([]LeaderEntry, error) + func (c *Client) GetPage(ctx context.Context, p string) (*Page, error) + func (c *Client) GetPerfStat(ctx context.Context, username, perfType string) (*PerfStat, error) + func (c *Client) GetPuzzle(ctx context.Context) (*Puzzle, error) + func (c *Client) GetTV(ctx context.Context) (*TVGame, error) + func (c *Client) GetUser(ctx context.Context, username string) (*User, error) + func (c *Client) PageLinks(ctx context.Context, p string, limit int) ([]*Page, error) + type Config struct + BaseURL string + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + func DefaultConfig() Config + type Domain struct + func (Domain) Classify(input string) (uriType, id string, err error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(uriType, id string) (string, error) + func (Domain) Register(app *kit.App) + type Game struct + BlackRating int + BlackUsername string + ID string + Moves string + Speed string + Status string + Variant string + WhiteRating int + WhiteUsername string + Winner string + type LeaderEntry struct + ID string + Rank int + Rating int + Title string + Username string + type Page struct + Body string + ID string + Title string + URL string + type PerfStat struct + Draws int + Games int + Losses int + Percentile float64 + PerfType string + PlayStreak int + Rank int + Rating int + Username string + WinStreak int + Wins int + type Puzzle struct + GameID string + ID string + Plays int + Rating int + Solution []string + Themes []string + type TVGame struct + BlackPlayer string + BlackRating int + Color string + FEN string + ID string + Speed string + WhitePlayer string + WhiteRating int + type User struct + BlitzRating int + BulletRating int + ClassRating int + ID string + Patron bool + RapidRating int + Title string + TotalGames int + Username string + Verified bool + WinCount int