Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateQRLogin(ctx context.Context) (QRLoginChallenge, error)
- func (c *Client) PollQRLogin(ctx context.Context, token string) (QRLoginResult, error)
- func (c *Client) SearchGames(ctx context.Context, query Query) (json.RawMessage, error)
- func (c *Client) SearchGeneral(ctx context.Context, query Query) (json.RawMessage, error)
- func (c *Client) SearchTopics(ctx context.Context, query Query) (json.RawMessage, error)
- type ClientOption
- type Error
- type ErrorKind
- type QRLoginChallenge
- type QRLoginResult
- type QRLoginState
- type Query
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cookie string, timeout time.Duration, options ...ClientOption) *Client
func (*Client) CreateQRLogin ¶ added in v0.2.0
func (c *Client) CreateQRLogin(ctx context.Context) (QRLoginChallenge, error)
func (*Client) PollQRLogin ¶ added in v0.2.0
func (*Client) SearchGames ¶
func (*Client) SearchGeneral ¶
func (*Client) SearchTopics ¶
type ClientOption ¶
type ClientOption func(*Client)
func WithBaseURL ¶
func WithBaseURL(baseURL string) ClientOption
func WithClock ¶
func WithClock(clock func() time.Time) ClientOption
func WithHTTPClient ¶
func WithHTTPClient(httpClient *http.Client) ClientOption
type QRLoginChallenge ¶ added in v0.2.0
type QRLoginResult ¶ added in v0.2.0
type QRLoginState ¶ added in v0.2.0
type QRLoginState string
const ( QRLoginWaiting QRLoginState = "waiting" QRLoginScanned QRLoginState = "scanned" QRLoginSucceeded QRLoginState = "succeeded" QRLoginExpired QRLoginState = "expired" )
Click to show internal directories.
Click to hide internal directories.