lolApi

package
v0.0.0-...-6690001 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoLApi

type LoLApi interface {
	GetSummonerInformation(ids []string) map[string]*SummonerInformation
	CompletePlayerStubs(team *dataModel.LoLTeamStub) (*dataModel.LoLTeamWithRosters, error)
	GetSummonerId(name string) (string, error)
	GetMatchStats(id string) (*dataModel.LoLMatchInformation, error)
}

func GetLolApiWrapper

func GetLolApiWrapper() LoLApi

type LoLTournamentApi

type LoLTournamentApi interface {
	RegisterTournament(leagueId int, region, tournamentName string) (providerId int, tournamentId int, err error)
	CreateTournamentKey(tournamentId int, metadata string) (string, error)
	ForwardCompleteTournamentGame(body []byte) error
}

func GetLoLTournamentApi

func GetLoLTournamentApi(config config.Config) LoLTournamentApi

type NativeLoLTournamentApi

type NativeLoLTournamentApi struct {
	// contains filtered or unexported fields
}

func (*NativeLoLTournamentApi) CreateTournamentKey

func (api *NativeLoLTournamentApi) CreateTournamentKey(tournamentId int, metadata string) (string, error)

func (*NativeLoLTournamentApi) ForwardCompleteTournamentGame

func (api *NativeLoLTournamentApi) ForwardCompleteTournamentGame(body []byte) error

func (*NativeLoLTournamentApi) RegisterTournament

func (api *NativeLoLTournamentApi) RegisterTournament(leagueId int, region, tournamentName string) (providerId int, tournamentId int, err error)

type SummonerInformation

type SummonerInformation struct {
	GameIdentifier string `json:"gameIdentifier"`
	Rank           string `json:"rank"`
	Tier           string `json:"tier"`
}

Jump to

Keyboard shortcuts

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