Documentation ¶
Index ¶
- Variables
- type AuthRequest
- type AuthResponse
- type Client
- func (s *Client) Authenticate(user string, authKey string) error
- func (s *Client) Close()
- func (s *Client) NewAuthRequest(method string, path string, body io.Reader) (*http.Request, error)
- func (s *Client) TwitchGetAuthenticationURL() (string, error)
- func (s *Client) TwitchUserInfo() (helix.User, error)
- type ClientOptions
- type ResponseError
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotAuthenticated = errors.New("not authenticated") ErrSubscriptionNotFound = errors.New("subscription not found") )
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶ added in v0.6.0
type AuthResponse ¶ added in v0.6.0
type Client ¶
type Client struct { Endpoint string Logger *zap.Logger KV *kvclient.Client // contains filtered or unexported fields }
Client is a HTTP/Websocket client for the Stulbe API.
func NewClient ¶
func NewClient(options ClientOptions) (*Client, error)
NewClient creates a new client for the Stulbe API
func (*Client) NewAuthRequest ¶ added in v0.4.0
func (*Client) TwitchGetAuthenticationURL ¶ added in v0.4.0
func (*Client) TwitchUserInfo ¶ added in v0.4.0
type ClientOptions ¶
type ResponseError ¶ added in v0.6.0
type StatusResponse ¶ added in v0.6.0
type StatusResponse struct {
Ok bool `json:"ok"`
}
Click to show internal directories.
Click to hide internal directories.