client

package
v0.0.0-...-612a8f1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTwitchStreamStatus

func CheckTwitchStreamStatus(username string) (bool, string)

func InitTwitchOAuth2Token

func InitTwitchOAuth2Token()

Types

type StreamerData

type StreamerData struct {
	Type       string `json:"type"`
	Title      string `json:"title"`
	UserLogin  string `json:"user_login"`
	StreamGame string `json:"game_name"`
	StartedAt  string `json:"started_at"`
}

func CheckMultipleTwitchStreamer

func CheckMultipleTwitchStreamer(usernames []string) []StreamerData

type TwitchUserInfo

type TwitchUserInfo struct {
	ID    string `json:"id"`
	Login string `json:"login"`
}

func GetTwitchUserInfo

func GetTwitchUserInfo(username string) (*TwitchUserInfo, error)

Jump to

Keyboard shortcuts

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