Documentation
¶
Index ¶
- type Account
- func (a *Account) ChangeAccount(email string, password string, url string, mode string) error
- func (a *Account) DeleteAccount(url string, mode string) error
- func (a *Account) DeleteFriend(url string, mode string) error
- func (a *Account) Disable(url string, mode string) error
- func (a *Account) Enable(url string, mode string) error
- func (a *Account) GetAccountBanList(apiUrl string, UserID string, UserName string, Offset int, Limit int, ...) ([]BanPlayer, error)
- func (a *Account) GetAccountDetail(id string, url string, mode string) (AccountInfo, error)
- func (a *Account) GetAccountList(apiUrl string, filter string, cursor string, mode string) (Accounts, error)
- func (a *Account) GetFriends(url string, mode string) (FriendResponse, error)
- func (a *Account) Unlink(url string, mode string) error
- func (a *Account) UpdateAccount(id string, params []byte, url string, mode string) (string, error)
- type AccountData
- type AccountInfo
- type Accounts
- type BanPlayer
- type Count
- type CountResponse
- type CreateTime
- type Encoder
- type FriendResponse
- type Friends
- type Headers
- type LazyInit
- type LazyUpdate
- type Leaderboard
- func (a *Leaderboard) DeleteLeaderboard(url string, mode string) error
- func (a *Leaderboard) GetLeaderboardDetail(url string, mode string) (LeaderboardInfo, error)
- func (a *Leaderboard) GetLeaderboardList(url string, mode string) (LeaderboardList, error)
- func (a *Leaderboard) GetLeaderboardRecord(url string, mode string) (LeaderboardRecord, error)
- type LeaderboardInfo
- type LeaderboardList
- type LeaderboardRecord
- type Match
- type MatchList
- type MatchState
- type Matches
- type Node
- type NormalizedNames
- type Params
- type Payload
- type Presences
- type Records
- type UpdateTime
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
func NewAccount ¶
func (*Account) ChangeAccount ¶
ChangeAccount 修改邮箱密码
func (*Account) DeleteAccount ¶
DeleteAccount 删除账户
func (*Account) DeleteFriend ¶
DeleteFriend 删除好友
func (*Account) GetAccountBanList ¶
func (a *Account) GetAccountBanList(apiUrl string, UserID string, UserName string, Offset int, Limit int, mode string) ([]BanPlayer, error)
GetAccountBanList 获取用用列表
func (*Account) GetAccountDetail ¶
GetAccountDetail 获取用户详情
func (*Account) GetAccountList ¶
func (a *Account) GetAccountList(apiUrl string, filter string, cursor string, mode string) (Accounts, error)
GetAccountList 获取用户列表
func (*Account) GetFriends ¶
func (a *Account) GetFriends(url string, mode string) (FriendResponse, error)
GetFriends 获取账户朋友
type AccountData ¶
type AccountInfo ¶
type AccountInfo struct {
Account AccountData `json:"account"`
DisableTime any `json:"disable_time"`
}
type BanPlayer ¶
type BanPlayer struct {
ID string `json:"id"`
Username string `json:"username"`
DisplayName string `json:"display_name"`
AvatarURL string `json:"avatar_url"`
LangTag string `json:"lang_tag"`
Metadata string `json:"metadata"`
EdgeCount int `json:"edge_count"`
CreateTime CreateTime `json:"create_time"`
UpdateTime UpdateTime `json:"update_time"`
SteamID string `json:"steam_id,omitempty"`
}
type Count ¶
func (*Count) GetGameServerInfo ¶
func (a *Count) GetGameServerInfo(apiUrl string, mode string) (CountResponse, error)
type CountResponse ¶
type CreateTime ¶
type CreateTime struct {
Seconds int `json:"seconds"`
}
type FriendResponse ¶
type Headers ¶
type Headers struct {
NormalizedNames NormalizedNames `json:"normalizedNames"`
LazyUpdate []LazyUpdate `json:"lazyUpdate"`
Headers map[string]string `json:"headers"`
LazyInit LazyInit `json:"lazyInit"`
}
type LazyInit ¶
type LazyInit struct {
NormalizedNames NormalizedNames `json:"normalizedNames"`
LazyUpdate any `json:"lazyUpdate"`
Headers map[string]string `json:"headers"`
}
type LazyUpdate ¶
type Leaderboard ¶
func NewLeaderboard ¶
func NewLeaderboard(token string) *Leaderboard
func (*Leaderboard) DeleteLeaderboard ¶
func (a *Leaderboard) DeleteLeaderboard(url string, mode string) error
DeleteLeaderboard 删除排行榜
func (*Leaderboard) GetLeaderboardDetail ¶
func (a *Leaderboard) GetLeaderboardDetail(url string, mode string) (LeaderboardInfo, error)
GetLeaderboardDetail 获取排行榜详情
func (*Leaderboard) GetLeaderboardList ¶
func (a *Leaderboard) GetLeaderboardList(url string, mode string) (LeaderboardList, error)
GetLeaderboardList 获取排行榜列表
func (*Leaderboard) GetLeaderboardRecord ¶
func (a *Leaderboard) GetLeaderboardRecord(url string, mode string) (LeaderboardRecord, error)
GetLeaderboardRecord 获取排行榜记录
type LeaderboardInfo ¶
type LeaderboardInfo struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Category int `json:"category"`
SortOrder int `json:"sort_order"`
Size int `json:"size"`
MaxSize int `json:"max_size"`
MaxNumScore int `json:"max_num_score"`
Operator int `json:"operator"`
EndActive int `json:"end_active"`
ResetSchedule string `json:"reset_schedule"`
Metadata string `json:"metadata"`
CreateTime any `json:"create_time"`
StartTime any `json:"start_time"`
EndTime any `json:"end_time"`
Duration int `json:"duration"`
StartActive int `json:"start_active"`
JoinRequired bool `json:"join_required"`
Authoritative bool `json:"authoritative"`
Tournament bool `json:"tournament"`
}
type LeaderboardList ¶
type LeaderboardList struct {
Leaderboards []LeaderboardInfo `json:"leaderboards"`
}
type LeaderboardRecord ¶
type Match ¶
func (*Match) GetMatchList ¶
type MatchState ¶
type Node ¶
type Node struct {
Name string `json:"name"`
Health int `json:"health"`
SessionCount int `json:"session_count"`
PresenceCount int `json:"presence_count"`
MatchCount int `json:"match_count"`
GoroutineCount int `json:"goroutine_count"`
AvgLatencyMs float64 `json:"avg_latency_ms"`
AvgRateSec float64 `json:"avg_rate_sec"`
AvgInputKbs float64 `json:"avg_input_kbs"`
AvgOutputKbs float64 `json:"avg_output_kbs"`
}
type NormalizedNames ¶
type NormalizedNames struct{}
type Records ¶
type Records struct {
LeaderboardID string `json:"leaderboard_id"`
OwnerID string `json:"owner_id"`
Username string `json:"username"`
Score string `json:"score"`
Subscore string `json:"subscore"`
NumScore int `json:"num_score"`
Metadata string `json:"metadata"`
CreateTime time.Time `json:"create_time"`
UpdateTime time.Time `json:"update_time"`
ExpiryTime any `json:"expiry_time"`
Rank string `json:"rank"`
MaxNumScore int `json:"max_num_score"`
}
type UpdateTime ¶
type UpdateTime struct {
Seconds int `json:"seconds"`
}
type User ¶
type User struct {
ID string `json:"id"`
Username string `json:"username"`
DisplayName string `json:"display_name"`
AvatarURL string `json:"avatar_url"`
LangTag string `json:"lang_tag"`
Location string `json:"location"`
Timezone string `json:"timezone"`
Metadata string `json:"metadata"`
FacebookID string `json:"facebook_id"`
GoogleID string `json:"google_id"`
GamecenterID string `json:"gamecenter_id"`
SteamID string `json:"steam_id"`
Online bool `json:"online"`
EdgeCount int `json:"edge_count"`
CreateTime time.Time `json:"create_time"`
UpdateTime time.Time `json:"update_time"`
FacebookInstantGameID string `json:"facebook_instant_game_id"`
AppleID string `json:"apple_id"`
}
Click to show internal directories.
Click to hide internal directories.