Documentation
¶
Index ¶
- func DeleteGSLTBySteamID(token string, steamid SteamID64) error
- func DeleteGSLTByToken(token string, gslt string) error
- func ResetLoginTokenBySteamID(token string, steamid SteamID64) (string, error)
- func SetMemo(token string, steamid SteamID64, memo string) error
- type GSLT
- type Manager
- type PublicInfoJSON
- type QueryInfoJSON
- type SteamID64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteGSLTBySteamID ¶
DeleteGSLTBySteamID Deletes specified GSLT. Returns error if GSLT was invalid
func DeleteGSLTByToken ¶
DeleteGSLTByToken Lists and Deletes specified GSLT. Returns error if GSLT was invalid. High API Usage.
func ResetLoginTokenBySteamID ¶
ResetLoginTokenBySteamID Resets specified GSLT's token. Returns error if GSLT was invalid. login_token will not be changed if its never used
Types ¶
type GSLT ¶
type GSLT struct { Steamid SteamID64 `json:"steamid"` Appid uint32 `json:"appid"` LoginToken string `json:"login_token"` Memo string `json:"memo"` IsDeleted bool `json:"is_deleted"` IsExpired bool `json:"is_expired"` RtLastLogon int `json:"rt_last_logon"` APIToken string `json:"-"` }
GSLT GSLT Struct.
func (*GSLT) GetAccountPublicInfo ¶
func (g *GSLT) GetAccountPublicInfo() (*PublicInfoJSON, error)
GetAccountPublicInfo Gets public information about a given game server account
func (*GSLT) QueryLoginToken ¶
func (g *GSLT) QueryLoginToken() (*QueryInfoJSON, error)
QueryLoginToken Queries the status of the specified token, which must be owned by you
func (*GSLT) ResetLoginToken ¶
ResetLoginToken Generates a new login token for the specified game server
type Manager ¶
Manager GSLT Manager.
type PublicInfoJSON ¶
type PublicInfoJSON struct {
// contains filtered or unexported fields
}
PublicInfoJSON Response Struct for generating GSLT. private
func GetAccountPublicInfo ¶
func GetAccountPublicInfo(token string, steamid SteamID64) (*PublicInfoJSON, error)
GetAccountPublicInfo Gets GSLT Account's public information
type QueryInfoJSON ¶
type QueryInfoJSON struct {
// contains filtered or unexported fields
}
QueryInfoJSON Response Struct for generating GSLT. private
func QueryLoginToken ¶
func QueryLoginToken(token string, logintoken string) (*QueryInfoJSON, error)
QueryLoginToken Queries login token info