wr

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, en-au, cs-cz, de-de, el-gr, es-es, es-mx,
	// fr-fr, it-it, pl-pl, pt-br, ro-ro, ru-ru, tr-tr, ja-jp,
	// ko-kr, zh-TW, th-th, en-PH, en-SG, id-ID, vi-vn,
	Locale string
}

A client that allows to get Wild Rift esports news.

Source - https://wildriftesports.com

func (EsportsClient) GetItems

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

type EsportsEntry

type EsportsEntry 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"`
}

VALORANT esports news entry

type NewsClient

type NewsClient struct {
	// Available locales:
	// en-us, en-gb, fr-fr, de-de, es-es, it-it, pl-pl, ru-ru, tr-tr, id-id,
	// ms-my, pt-br, ja-jp, ko-kr, zh-tw, th-th, vi-vn, es-mx, en-sg, ar-ae
	Locale string
}

A client that allows to get official Wild Rift news.

Source - https://wildrift.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"`
	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"`
}

Wild Rift news entry

type StatusClient

type StatusClient struct {
	// Available regions:
	// br, eu, jp, kr, latam, mei, na, ru, sea
	Region string
}

A client that allows to get Wild Rift server status.

Source - https://status.riotgames.com/wildrift

func (StatusClient) GetItems

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

Available locales: en-US, de-DE, en-GB, es-MX, es-ES, fr-FR, id-ID, it-IT, ja-JP, ko-KR, pl-PL, ms-MY, pt-BR, ru-RU, th-TH, tr-TR, vi-VN, zh-MY, zh-TW

type StatusEntry

type StatusEntry serverstatus.Entry

Wild Rift server status entry

Jump to

Keyboard shortcuts

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