Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type AuthResponse struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` TokenType string `json:"token_type"` }
AuthResponse contains the response for the authentication endpoint.
func ParseAuthenticateResponse ¶
func ParseAuthenticateResponse(data []byte) (*AuthResponse, error)
ParseAuthenticateResponse parses the Authenticate response into AuthResponse.
type Cache ¶
type Cache interface { Get(ctx context.Context, key string) (string, error) Set(ctx context.Context, key string, value any, expiration time.Duration) error }
Cache interface for caching.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client communicates with the Twitch api.
func (*Client) Authenticate ¶
Authenticate returns an access token for the Twitch API.
Click to show internal directories.
Click to hide internal directories.