Documentation
¶
Index ¶
- Variables
- func ExtractActivationBytes(data io.Reader) ([]byte, error)
- type Book
- type ByTitle
- type Client
- func (c *Client) Authenticate(ctx context.Context) error
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) GetActivationBytes(ctx context.Context) ([]byte, error)
- func (c *Client) GetLibrary(ctx context.Context) ([]*Book, error)
- func (c *Client) GetPlayerToken(ctx context.Context) (string, error)
- type Option
- func OptionAuthCode(getAuthCode func() string) Option
- func OptionBaseURL(baseURL string) Option
- func OptionCaptcha(getCaptcha func(imgURL string) string) Option
- func OptionPassword(password string) Option
- func OptionPlayerID(playerID string) Option
- func OptionPromptChoice(getChoice func(msg string, opts []string) int) Option
- func OptionUsername(username string) Option
- type Page
- type Region
Constants ¶
This section is empty.
Variables ¶
View Source
var Regions = []*Region{
{"Australia", "com.au"},
{"Canada", "ca"},
{"France", "fr"},
{"Germany", "de"},
{"India", "in"},
{"Italy", "it"},
{"Japan", "co.jp"},
{"United Kingdom", "co.uk"},
{"United States", "com"},
}
Functions ¶
func ExtractActivationBytes ¶
Types ¶
type Book ¶
type ByTitle ¶
type ByTitle []*Book
ByTitle implements sort.Interface for []*Book based on the Title field
type Client ¶
func (*Client) GetActivationBytes ¶
type Option ¶
type Option func(*Client)
func OptionAuthCode ¶
func OptionBaseURL ¶
func OptionCaptcha ¶
func OptionPassword ¶
func OptionPlayerID ¶
func OptionPromptChoice ¶
func OptionUsername ¶
Click to show internal directories.
Click to hide internal directories.