streams

package
v0.0.0-...-e6cb9b4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArrayStreams []TwitchStream
View Source
var I64LastStreamersUpdate int64
View Source
var MuStreams sync.RWMutex

Functions

func RequestTwitchAuthToken

func RequestTwitchAuthToken() bool

func StreamlistEqual

func StreamlistEqual(arStreams []TwitchStream) bool

func UpdateOnlineStreams

func UpdateOnlineStreams()

func WatchOnline

func WatchOnline()

func Watchers

func Watchers()

Types

type TwitchStream

type TwitchStream struct {
	UserLogin    string `json:"user_login"`
	UserName     string `json:"user_name"`
	Title        string `json:"stream_title"`
	Language     string `json:"stream_language"`
	Thumbnail    string `json:"stream_thumbnail"`
	ViewersCount int    `json:"viewers_count"`
}

func GetTwitchStreams

func GetTwitchStreams(arTwitchIDs []string) []TwitchStream

func RequestTwitchStreams

func RequestTwitchStreams(arTwitchIDs []string) ([]TwitchStream, int)

func SortStreams

func SortStreams(arStreams []TwitchStream) []TwitchStream

Jump to

Keyboard shortcuts

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