api

package
v0.0.0-...-683f586 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Key string
	Url string
}

func NewAPI

func NewAPI(key string) *API

func (*API) RequestLifeTimeStats

func (a *API) RequestLifeTimeStats(shard ShardType, accountId string) (*schema.LifeTimeStats, error)

func (*API) RequestMatchInfo

func (a *API) RequestMatchInfo(shard ShardType, matchId string) (*schema.Match, error)

func (*API) RequestSamples

func (a *API) RequestSamples(shard ShardType) (*schema.Match, error)

func (*API) RequestSeasons

func (a *API) RequestSeasons(shard ShardType) ([]*schema.Season, error)

func (*API) RequestSinglePlayerByName

func (a *API) RequestSinglePlayerByName(shard ShardType, playerName string) (*schema.Player, error)

type ShardType

type ShardType string
const (
	STEAM  ShardType = "steam"
	KAKAO  ShardType = "kakao"
	PSN    ShardType = "psn"
	STADIA ShardType = "stadia"
	XBOX   ShardType = "xbox"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL