Versions in this module Expand all Collapse all v1 v1.0.1 Jun 28, 2022 Changes in this version + type Achievement struct + Description []string + ID int + Reward int + Title string + type Achievements map[string][]Achievement + type AvailableLeaderboard struct + Description string + MaxSize int + Season string + Sort []string + Type string + type Client struct + func NewClient(opts Options) (*Client, error) + func (c *Client) BareDo(ctx context.Context, req *http.Request) (*http.Response, error) + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*http.Response, error) + func (c *Client) GetAchievements(ctx context.Context) (*Achievements, error) + func (c *Client) GetGames(ctx context.Context) ([]*Game, error) + func (c *Client) GetGuildByID(ctx context.Context, id int) (*Guild, error) + func (c *Client) GetGuildByName(ctx context.Context, name string) (*Guild, error) + func (c *Client) GetGuildByTag(ctx context.Context, tag string) (*Guild, error) + func (c *Client) GetLeaderboard(ctx context.Context, boardType, sort string, size, offset int) (*Leaderboard, error) + func (c *Client) GetLeaderboardList(ctx context.Context) ([]*AvailableLeaderboard, error) + func (c *Client) GetLocaleByName(ctx context.Context, name string, parts ...string) (*Locale, error) + func (c *Client) GetMaps(ctx context.Context) (*Maps, error) + func (c *Client) GetMatchLatest(ctx context.Context) ([]*Match, error) + func (c *Client) GetMatchListAfter(ctx context.Context, after string, count int) ([]*Match, error) + func (c *Client) GetMatchListBefore(ctx context.Context, before string, count int) ([]*Match, error) + func (c *Client) GetOnline(ctx context.Context) (*Online, error) + func (c *Client) GetOnlineStaff(ctx context.Context) ([]*User, error) + func (c *Client) GetOnlineStreams(ctx context.Context) ([]*OnlineStream, error) + func (c *Client) GetTokenInfo(ctx context.Context, token string) (*Token, error) + func (c *Client) GetUserAchievements(ctx context.Context, id int) (*UserAchievements, error) + func (c *Client) GetUserFriends(ctx context.Context, id int) (*Friends, error) + func (c *Client) GetUserLeaderboards(ctx context.Context, id int) (*UserLeaderboards, error) + func (c *Client) GetUserMatchesAfter(ctx context.Context, id int, after string, count int) (*UserMatches, error) + func (c *Client) GetUserMatchesBefore(ctx context.Context, id int, before string, count int) (*UserMatches, error) + func (c *Client) GetUserMatchesOffset(ctx context.Context, id, offset, count int) (*UserMatches, error) + func (c *Client) GetUserSession(ctx context.Context, id int) (*Session, error) + func (c *Client) GetUserStats(ctx context.Context, id int, games ...string) (*UserStats, error) + func (c *Client) GetUsersByIds(ctx context.Context, ids ...int) ([]*User, error) + func (c *Client) GetUsersByNames(ctx context.Context, names ...string) ([]*User, error) + func (c *Client) GetUsersSessions(ctx context.Context, ids ...int) ([]*UserSession, error) + func (c *Client) GuildSearch(ctx context.Context, query string) ([]*UserGuild, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + type Error struct + Comment string + ErrorCode int + ErrorMsg string + func (e Error) Error() string + type ErrorResponse struct + Error Error + type Friends struct + Friends []User + User User + type Game struct + GlobalStats []string + ID string + Name string + SeasonStats struct{ ... } + type GameLocale struct + Name string + type Guild struct + AvatarURL string + Color string + Created int + ID int + Level int + LevelPercentage float64 + Members []GuildMember + Name string + Perks map[string]GuildPerk + Tag string + TotalCoins int + TotalExp int + WebInfo string + type GuildMember struct + GuildCoins int + GuildExp int + Joined int + Status string + User User + type GuildPerk struct + Level int + Name string + type Leaderboard struct + Meta LeaderboardResponseMeta + Records []interface{} + type LeaderboardResponseMeta struct + MaxSize int + Offset int + Size int + Sort string + Type string + type Locale struct + GameStats map[string]map[string]interface{} + Games map[string]GameLocale + Ranks map[string]RankLocale + type Map struct + Name string + PlayersInTeam int + Teams int + type Maps map[string]map[string]Map + type Match struct + Date int64 + Duration int + Game string + ID string + Map MatchMap + Players int + type MatchMap struct + ID string + Name string + PlayersInTeam int + Teams int + type Online struct + Separated map[string]int + Total int + type OnlineSession struct + Game string + Message string + Value bool + type OnlineStream struct + Duration int + Owner string + Platform string + Title string + URL string + User User + Viewers int + type Options struct + BaseURL string + Client *http.Client + Tokens []string + type RankLocale struct + Name string + Prefix string + type Session struct + Online OnlineSession + User User + type Token struct + Limit int + Owner *User + Token string + Type string + Valid bool + type User struct + Guild *UserGuild + ID int + LastSeen int64 + Level int + LevelPercentage float64 + PlayedSeconds int64 + Rank string + Username string + type UserAchievement struct + ID int + Time int64 + type UserAchievements struct + Achievements []UserAchievement + User User + type UserGuild struct + AvatarURL string + Color string + ID int + Level int + LevelPercentage float64 + Name string + Tag string + type UserLeaderboard struct + Place int + Sort string + Type string + type UserLeaderboards struct + Leaderboards []UserLeaderboard + User User + type UserMatch struct + Date int + Duration int + Game string + ID string + Map MatchMap + Players int + State int + Win bool + type UserMatches struct + Matches []UserMatch + Request struct{ ... } + User User + type UserSession struct + Online OnlineSession + type UserStats struct + Stats map[string]interface{} + User User