wr

package
v0.0.0-...-fcecf71 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 = nextjsnews.Item

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