twitch

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOpts added in v0.42.0

type ClientOpts struct {
	ClientID         string
	ClientSecret     string
	AppAccessToken   string
	UserAccessToken  string
	UserRefreshToken string
	RedirectURI      string
	Streams          string
	UserID           string
}

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Stream

type Stream struct {
	Streamer    string
	ViewerCount int
	Language    string
	GameID      string
	Title       string
}

type Twitch

type Twitch struct {
	UserRefreshToken string
	UserID           string
	Streams          string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts *ClientOpts) (*Twitch, error)

func (*Twitch) FollowedStreams added in v0.42.0

func (t *Twitch) FollowedStreams(params *helix.FollowedStreamsParams) (*helix.StreamsResponse, error)

func (*Twitch) RefreshOAuthToken added in v0.42.0

func (t *Twitch) RefreshOAuthToken() error

func (*Twitch) TopStreams

func (t *Twitch) TopStreams(params *helix.StreamsParams) (*helix.StreamsResponse, error)

type Widget

type Widget struct {
	view.ScrollableWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, pages *tview.Pages, settings *Settings) *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

func (*Widget) Render

func (widget *Widget) Render()

Jump to

Keyboard shortcuts

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