interfaces

package
v0.0.0-...-0de79a6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIUtil

type APIUtil interface {
	CreateSession(int) ([]*m.Session, []error)
	TestSession([]string) ([]*string, []error)
	GetDataUsed() (*m.UsageInfo, error)
}

type GoRez

type GoRez interface {
	Init() error
	Shutdown()
	GodItemInfo
	PlayerInfo
	MatchInfo
}

type GodItemInfo

type GodItemInfo interface {
	GetGods() ([]byte, error)
	GetItems() ([]byte, error)
	GetGodRecItems(godIDs []int) ([][]byte, []error)
}

type GorezUtil

type GorezUtil interface {
	BulkAsyncSessionRequest([]func(*sessionM.Session) *requestM.Request) ([][]byte, []error)
	MultiRequest(requestArgs []string, endpoint, method string) ([][]byte, []error)
	SingleRequest(url, endpoint, endpointArgs string) ([]byte, error)
}

type MatchInfo

type MatchInfo interface {
	GetMatchDetails(matchID string) ([]byte, error)
	GetMatchDetailsBatch(matchIDs ...string) ([][]byte, []error)
	GetMatchIDsByQueue(dateStrings []string, queueIDs []m.QueueID) ([]*[]m.MatchIDWithQueue, []error)
	GetMatchPlayerDetails(matchID string) ([]byte, error)
}

type PlayerInfo

type PlayerInfo interface {
	GetPlayerIDByName(playerName ...string) ([]*m.PlayerIDWithName, []error)
	GetPlayer(playerID int) ([]byte, error)
	GetPlayerBatch(playerIDs []int) ([][]byte, []error)
	GetMatchHistory(playerID ...int) ([][]byte, []error)
	GetQueueStats(playerID []int) ([]*m.QueueStat, []error)
}

type SessionCache

type SessionCache interface {
	ReadSessions() ([]*m.Session, error)
	SaveSessions([]*m.Session) error
}

Jump to

Keyboard shortcuts

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