Versions in this module Expand all Collapse all v0 v0.7.0 Mar 30, 2024 Changes in this version + const AUDIO + const Back + const Default + const Expired + const Issued + const New + const Search + const TEXT_ALPHANUMERIC + const TEXT_NUMERIC + type Announcement struct + ID string + Label Label + Priority int32 + Type string + XMLName xml.Name + type Announcements struct + Announcement []Announcement + XMLName xml.Name + type Audio struct + RangeBegin int64 + RangeEnd int64 + Size int64 + URI string + XMLName xml.Name + type Bookmark struct + CharOffset string + Label string + Lang string + NcxRef string + Note Note + TimeOffset string + URI string + XMLName xml.Name + type BookmarkSet struct + Bookmark []Bookmark + Hilite []Hilite + Lastmark Lastmark + Title Title + UID string + XMLName xml.Name + type Choice struct + ID string + Label Label + XMLName xml.Name + type Choices struct + Choice []Choice + XMLName xml.Name + type Client struct + func NewClient(url string, timeout time.Duration) *Client + func NewClientWithContext(ctx context.Context, url string, timeout time.Duration) *Client + func (c *Client) GetBookmarks(contentID string) (*BookmarkSet, error) + func (c *Client) GetContentList(id string, firstItem int32, lastItem int32) (*ContentList, error) + func (c *Client) GetContentMetadata(contentID string) (*ContentMetadata, error) + func (c *Client) GetContentResources(contentID string) (*Resources, error) + func (c *Client) GetQuestions(userResponses *UserResponses) (*Questions, error) + func (c *Client) GetServiceAnnouncements() (*Announcements, error) + func (c *Client) GetServiceAttributes() (*ServiceAttributes, error) + func (c *Client) IssueContent(contentID string) (bool, error) + func (c *Client) LogOff() (bool, error) + func (c *Client) LogOn(username, password string) (bool, error) + func (c *Client) MarkAnnouncementsAsRead(read *Read) (bool, error) + func (c *Client) ReturnContent(contentID string) (bool, error) + func (c *Client) SetBookmarks(contentID string, bookmarkSet *BookmarkSet) (bool, error) + func (c *Client) SetReadingSystemAttributes(readingSystemAttributes *ReadingSystemAttributes) (bool, error) + type Config struct + PreferredUILanguage string + RequiresAudioLabels bool + SupportedContentFormats SupportedContentFormats + SupportedContentProtectionFormats SupportedContentProtectionFormats + SupportedInputTypes SupportedInputTypes + SupportedMimeTypes SupportedMimeTypes + SupportsMultipleSelections bool + XMLName xml.Name + type ContentItem struct + ID string + Label Label + LastModifiedDate string + XMLName xml.Name + type ContentList struct + ContentItems []ContentItem + FirstItem int32 + ID string + Label Label + LastItem int32 + TotalItems int32 + XMLName xml.Name + type ContentMetadata struct + Category string + Metadata Metadata + RequiresReturn bool + Sample Sample + XMLName xml.Name + type Fault struct + Faultstring string + XMLName xml.Name + func (f *Fault) Error() string + type Hilite struct + HiliteEnd HiliteEnd + HiliteStart HiliteStart + Label string + Note Note + XMLName xml.Name + type HiliteEnd struct + CharOffset string + NcxRef string + TimeOffset string + URI string + XMLName xml.Name + type HiliteStart struct + CharOffset string + NcxRef string + TimeOffset string + URI string + XMLName xml.Name + type Input struct + Type string + XMLName xml.Name + type InputQuestion struct + ID string + InputTypes InputTypes + Label Label + XMLName xml.Name + type InputTypes struct + Input []Input + XMLName xml.Name + type Label struct + Audio Audio + Dir string + Lang string + Text string + XMLName xml.Name + type Lastmark struct + CharOffset string + NcxRef string + TimeOffset string + URI string + XMLName xml.Name + type Meta struct + Content string + Name string + XMLName xml.Name + type Metadata struct + Contributor []string + Coverage []string + Creator []string + Date string + Description []string + Format string + Identifier string + Language []string + Meta []Meta + Narrator []string + Publisher string + Relation []string + Rights []string + Size int64 + Source string + Subject []string + Title string + Type []string + XMLName xml.Name + type MimeType struct + Type string + XMLName xml.Name + type MultipleChoiceQuestion struct + AllowMultipleSelections bool + Choices Choices + ID string + Label Label + XMLName xml.Name + type Note struct + Text string + XMLName xml.Name + type Questions struct + ContentListRef string + InputQuestion []InputQuestion + Label Label + MultipleChoiceQuestion []MultipleChoiceQuestion + XMLName xml.Name + type Read struct + Item []string + XMLName xml.Name + type ReadingSystemAttributes struct + Config Config + Manufacturer string + Model string + Version string + XMLName xml.Name + type Resource struct + LastModifiedDate string + LocalURI string + MimeType string + Size int64 + URI string + XMLName xml.Name + type Resources struct + LastModifiedDate string + Resources []Resource + ReturnBy string + XMLName xml.Name + type Sample struct + ID string + XMLName xml.Name + type Service struct + ID string + Label Label + XMLName xml.Name + type ServiceAttributes struct + Service Service + ServiceProvider ServiceProvider + SupportedContentSelectionMethods SupportedContentSelectionMethods + SupportedOptionalOperations SupportedOptionalOperations + SupportedUplinkAudioCodecs SupportedUplinkAudioCodecs + SupportsAudioLabels bool + SupportsSearch bool + SupportsServerSideBack bool + XMLName xml.Name + type ServiceProvider struct + ID string + Label Label + XMLName xml.Name + type SupportedContentFormats struct + ContentFormat []string + XMLName xml.Name + type SupportedContentProtectionFormats struct + ProtectionFormat []string + XMLName xml.Name + type SupportedContentSelectionMethods struct + Method []string + XMLName xml.Name + type SupportedInputTypes struct + Input []Input + XMLName xml.Name + type SupportedMimeTypes struct + MimeType []MimeType + XMLName xml.Name + type SupportedOptionalOperations struct + Operation []string + XMLName xml.Name + type SupportedUplinkAudioCodecs struct + Codec []string + XMLName xml.Name + type Title struct + Text string + XMLName xml.Name + type UserResponse struct + Data string + QuestionID string + Value string + XMLName xml.Name + type UserResponses struct + UserResponse []UserResponse + XMLName xml.Name