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, 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 // id-id, vi-vn Locale string }
A client that allows to get VALORANT esports news.
Source - https://valorantesports.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"` 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, de-de, es-es, fr-fr, it-it, pl-pl, ru-ru, tr-tr, // es-mx, id-id, ja-jp, ko-kr, pt-br, th-th, vi-vn, zh-tw, ar-ae Locale string }
A client that allows to get official VALORANT news.
Source - https://playvalorant.com/en-us/news/
type StatusClient ¶
type StatusClient struct { // Available regions: // ap, br, eu, kr, latam, na, pbe Region string }
A client that allows to get VALORANT server status.
Source - https://status.riotgames.com/valorant
func (StatusClient) GetItems ¶
func (client StatusClient) GetItems(locale string) ([]StatusEntry, error)
Available locales: en-US, ar-AE, de-DE, es-ES, es-MX, fr-FR, id-ID, it-IT, ja-JP, ko-KR, pl-PL, pt-BR, ru-RU, tr-TR, th-TH, vi-VN, zh-TW.
Click to show internal directories.
Click to hide internal directories.