Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultScheme = "https" DefaultHost = "cloud.pocketbook.digital" DefaultPath = "/api/v1.0/" )
View Source
const TokenTypeBearer tokenType = "Bearer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct {
ID string
Path string
Title string
MimeType string
CreatedAt time.Time
Purchased bool
Bytes int
ClientMtime time.Time
FastHash string
Favorite bool
ReadStatus string
Link string
HasLinks bool
Format string
Md5Hash string
Mtime time.Time
Name string
ReadPercent int
Percent string
IsDrm bool
IsLcp bool
IsAudioBook bool
MetaData BookMetaData
Position BookPosition
ReadPosition BookReadPosition
Action string
ActionDate time.Time
}
type BookMetaData ¶
type BookPosition ¶
type BookReadPosition ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type LoginRequest ¶
type Option ¶
type Option func(*Client)
func WithClientID ¶
func WithClientSecret ¶
func WithHTTPClient ¶
func WithHTTPClient(client doer) Option
Click to show internal directories.
Click to hide internal directories.