lol

package
v0.0.0-...-7b5fe61 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsportsClient

type EsportsClient struct {
	// Available locales:
	// en-us, en-gb, de-de, es-es, es-mx, fr-fr, it-it, pl-pl, pt-br,
	// ru-ru, tr-tr, ja-jp, ko-kr, zh-tw, th-th, en-ph, en-sg
	Locale string
}

A client that allows to get League of Legends esports news.

Source - https://lolesports.com/news

func (EsportsClient) GetItems

func (client EsportsClient) GetItems(count int) ([]EsportsEntry, error)

type EsportsEntry

type EsportsEntry struct {
	UID         string    `json:"uid"`
	Authors     []string  `json:"authors"`
	Date        time.Time `json:"date"`
	Description string    `json:"description"`
	Image       string    `json:"image"`
	Tags        []string  `json:"tags"`
	Title       string    `json:"title"`
	URL         string    `json:"url"`
}

League of Legends esports news entry

type NewsClient

type NewsClient struct {
	// Available locales:
	// en-us, en-gb, de-de, es-es, fr-fr, it-it, en-pl, pl-pl, el-gr, ro-ro,
	// hu-hu, cs-cz, es-mx, pt-br, ja-jp, ru-ru, tr-tr, en-au, ko-kr,
	// en-sg, en-ph, vi-vn, th-th, zh-tw
	Locale string
}

A client that allows to get official League of Legends news.

Source - https://www.leagueoflegends.com/en-us/news

func (NewsClient) GetItems

func (client NewsClient) GetItems(count int) ([]NewsEntry, error)

type NewsEntry

type NewsEntry struct {
	UID         string    `json:"uid"`
	Authors     []string  `json:"authors"`
	Categories  []string  `json:"categories"`
	Date        time.Time `json:"date"`
	Description string    `json:"description"`
	Image       string    `json:"image"`
	Tags        []string  `json:"tags"`
	Title       string    `json:"title"`
	URL         string    `json:"url"`
}

League of Legends news entry

type StatusClient

type StatusClient struct {
	// Available regions and locales:
	// br1 (en-US, pt-BR); eun1 (en-US, en-GB, cs-CZ, el-GR, hu-HU, pl-PL, ro-RO);
	// euw1 (en-US, en-GB, de-DE, es-ES, fr-FR, it-IT);
	// jp1 (en-US, ja-JP); kr1 (en-US, ko-KR); la1 (en-US, es-MX); la2 (en-US, es-AR);
	// na1 (en-US); oc1 (en-US, en-AU); ru1 (en-US, ru-RU); tr1 (en-US, tr-TR);
	// ph2 (en-US, en_PH); sg2 (en-US, en-SG, zh_MY); th2 (en-US, th_TH);
	// tr1 (en-US, tr_TR); tw2 (en-US, zh_TW); vn2 (en-US, vi_VN);
	// pbe (en-US, cs-CZ, de-DE, el-GR, es-MX, es-ES, fr-FR, hu-HU,
	//	it-IT, ja-JP, ko-KR, pl-PL, pt-BR, ro-RO, ru-RU, tr-TR).
	Region string
}

A client that allows to get League of Legends server status.

Source - https://status.riotgames.com/lol;

func (StatusClient) GetItems

func (client StatusClient) GetItems(locale string) ([]StatusEntry, error)

type StatusEntry

type StatusEntry serverstatus.Entry

League of Legends server status entry

Jump to

Keyboard shortcuts

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