Documentation
¶
Index ¶
- type Init
- func (i Init) FindGuild(name string) map[string]interface{}
- func (i Init) FloatToInt(number float64) int64
- func (i Init) GetBoosters() map[string]interface{}
- func (i Init) GetFriends(uuid string) map[string]interface{}
- func (i Init) GetGameCounts() map[string]interface{}
- func (i Init) GetGuild(name string) map[string]interface{}
- func (i Init) GetKey(key string) map[string]interface{}
- func (i Init) GetLeaderboards() map[string]interface{}
- func (i Init) GetPlayerCount() float64
- func (i Init) GetPlayerGuild(uuid string) map[string]interface{}
- func (i Init) GetPlayerName(uuid string) string
- func (i Init) GetPlayerStats(name string) map[string]interface{}
- func (i Init) GetPlayerStatsUUID(uuid string) map[string]interface{}
- func (i Init) GetPlayerUUID(name string) string
- func (i Init) GetRecentGames(uuid string) map[string]interface{}
- func (i Init) GetResources(resource string) map[string]interface{}
- func (i Init) GetStatus(uuid string) map[string]interface{}
- func (i Init) GetWatchdogStats() map[string]interface{}
- func (i Init) InterfaceArray(in interface{}) []interface{}
- func (i Init) InterfaceToMap(in interface{}) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Init ¶
type Init struct {
Key string
}
Init is a struct which contains player key.
func (Init) FloatToInt ¶
FloatToInt takes float and convert it to int
func (Init) GetBoosters ¶
GetBoosters returns list of boosters.
func (Init) GetFriends ¶
GetFriends returns friendships for given player.
func (Init) GetGameCounts ¶
GetGameCounts returns the current player count along with the player count of each public game + mode on the server.
func (Init) GetLeaderboards ¶
GetLeaderboards returns a list of the official leaderboards and their current standings for games on the network.
func (Init) GetPlayerCount ¶
GetPlayerCount returns current player count.
func (Init) GetPlayerGuild ¶
GetPlayerGuild returns information about given player uuid guild.
func (Init) GetPlayerName ¶
GetPlayerName finds player name by uuid.
func (Init) GetPlayerStats ¶
GetPlayerStats returns a player's data, such as game stats.
func (Init) GetPlayerStatsUUID ¶
GetPlayerStatsUUID returns a player's data, such as game stats by uuid.
func (Init) GetPlayerUUID ¶
GetPlayerUUID finds player uuid by name.
func (Init) GetRecentGames ¶
GetRecentGames returns recent games of a player. A maximum of 100 games are returned and recent games are only stored for up to 3 days at this time.
func (Init) GetResources ¶
GetResources provides an endpoint to retrieve resources which don't change often. This does not require an API key.
func (Init) GetStatus ¶
GetStatus returns online status information for given player, including game, mode and map when available.
func (Init) GetWatchdogStats ¶
GetWatchdogStats returns some statistics about Watchdog & bans.
func (Init) InterfaceArray ¶
func (i Init) InterfaceArray(in interface{}) []interface{}
InterfaceArray is a function which returns []interface{}.
func (Init) InterfaceToMap ¶
InterfaceToMap is a function which converts interface to map using type assertion.