Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TwitchChannel ¶
type TwitchStream ¶
type TwitchStream struct { Viewers int `json:"viewers"` Channel TwitchChannel `json:"channel"` }
type TwitchStreamsPager ¶
type TwitchStreamsPager struct {
// contains filtered or unexported fields
}
func NewTwitchStreamsPager ¶
func NewTwitchStreamsPager(language, clientID string) *TwitchStreamsPager
NewTwitchStreamsPager returns the initial TwitchStreamsPager
func (*TwitchStreamsPager) Next ¶
func (pager *TwitchStreamsPager) Next() ([]TwitchStream, bool, error)
Next returns the TwitchStreams for the current page and progresses. bool is true if it hits the end.
func (*TwitchStreamsPager) Reset ¶
func (pager *TwitchStreamsPager) Reset()
Reset resets the pager to it's initial position
type TwitchStreamsResponse ¶
type TwitchStreamsResponse struct { Total int `json:"_total"` Streams []TwitchStream `json:"streams"` }
Click to show internal directories.
Click to hide internal directories.