Documentation
¶
Index ¶
Constants ¶
View Source
const ( ChampionEndpointURL = "/lol/platform/v3/champion-rotations" StatusEndpointURL = "/lol/status/v4/platform-data" )
League of Legends endpoints
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChampionEndpoint ¶
type ChampionEndpoint struct {
// contains filtered or unexported fields
}
func (*ChampionEndpoint) FreeRotation ¶
func (c *ChampionEndpoint) FreeRotation(region api.Region) (*ChampionInfo, error)
Get Free Champions Rotation
type ChampionInfo ¶ added in v0.2.2
type ContentDto ¶ added in v0.2.2
type LOLClient ¶
type LOLClient struct {
Champion *ChampionEndpoint
Status *StatusEndpoint
// contains filtered or unexported fields
}
func NewLOLClient ¶
func NewLOLClient(client *internal.InternalClient) *LOLClient
Creates a new LOLClient using a InternalClient
type PlatformDataDto ¶ added in v0.2.2
type StatusDto ¶ added in v0.2.2
type StatusDto struct {
ArchiveAt time.Time `json:"archive_at"`
Titles []ContentDto `json:"titles"`
UpdatedAt time.Time `json:"updated_at"`
IncidentSeverity string `json:"incident_severity"`
Platforms []string `json:"platforms"`
Updates []UpdateDto `json:"updates"`
CreatedAt time.Time `json:"created_at"`
ID int `json:"id"`
MaintenanceStatus string `json:"maintenance_status"`
}
type StatusEndpoint ¶ added in v0.2.2
type StatusEndpoint struct {
// contains filtered or unexported fields
}
func (*StatusEndpoint) Status ¶ added in v0.2.2
func (c *StatusEndpoint) Status(region api.Region) (*PlatformDataDto, error)
Get Status
Click to show internal directories.
Click to hide internal directories.