Versions in this module Expand all Collapse all v0 v0.0.3 May 16, 2023 v0.0.2 Dec 13, 2021 Changes in this version + var ErrInvalidState = errors.New("invalid state coming from Twitch") + var ErrTooManyLoginNames = errors.New("too many login sets. Cannot be more than 100") + var ErrTooManyUserLoginNames = errors.New("too many user login sets. Cannot be more than 100") + type Client struct + Streams StreamsI + Users UsersI + func New(config *Config) (*Client, error) + type Config struct + ClientID string + ClientSecret string + type Error struct + Err string + Message string + Status int + func (e Error) Error() string + type Stream struct + GameID string + GameName string + ID string + IsMature bool + Language string + StartedAt time.Time + TagIds []string + ThumbnailURL string + Title string + Type string + UserID string + UserLogin string + UserName string + ViewerCount int + type StreamsI interface + GetFollowed func() ([]*Stream, error) + GetStream func(userLogin ...string) ([]*Stream, error) + type User struct + BroadcasterType string + CreatedAt time.Time + Description string + DisplayName string + ID string + Login string + OfflineImageURL string + ProfileImageURL string + Type string + ViewCount int + type UsersI interface + Get func(login ...string) ([]*User, error) + Me func() *User + ProfileImageBytes func(user *User) ([]byte, error)