Versions in this module Expand all Collapse all v0 v0.0.1 Jan 4, 2024 Changes in this version + func AsinFromPath(path string) (string, error) + func MarketFromHost(host string) string + type Chapter struct + ChapTitle string + Length int + StartMs int + func (c Chapter) End() time.Duration + func (c Chapter) Start() time.Duration + func (c Chapter) Title() string + type ChapterInfo struct + Chapters []Chapter + DurationMs int + DurationSec int + IntroDurationMs int + IsAccurate bool + OutroDurationMs int + type ContentRequest struct + func Content() *ContentRequest + func (c *ContentRequest) Asin(id string) (*ContentResponse, error) + func (c *ContentRequest) Get(u string) (*ContentResponse, error) + func (c *ContentRequest) URL(u string) (*ContentResponse, error) + type ContentResponse struct + Meta struct{ ... } + func (c *ContentResponse) Chapters() []*avtools.Chapter + type Host struct + func ParseHost(hs string) (*Host, error) + func (h *Host) Domain(s string) *Host + func (h *Host) SubDomain(s string) *Host + func (h *Host) TLD(s string) *Host + func (h Host) String() string + type Path struct + type Product struct + Asin string + Authors []map[string]string + Languages string + Narrators []map[string]string + ProductImages map[string]string + Publisher string + PublisherSummary string + ReleaseDate string + RuntimeMin int + Series []map[string]string + Title string + func (p Product) FilterValue() string + func (p Product) ToBook() cdb.Book + type ProductsRequest struct + func Products() *ProductsRequest + func (p *ProductsRequest) Get() (*ProductsResponse, error) + func (p *ProductsRequest) Search(s *Search) (*ProductsResponse, error) + func (p *ProductsRequest) URL(u string) (*ProductsResponse, error) + type ProductsResponse struct + Product Product + Products []Product + TotalResults int + type Query struct + ID string + IsAudio bool + Query url.Values + URI string + func New(uri ...string) *Query + func ParseURL(uri string) *Query + func (q *Query) AddParam(name, val string) *Query + func (q *Query) AppendPath(paths ...string) *Query + func (q *Query) PrependPath(path string) *Query + func (q *Query) SetHost(host string) *Query + func (q *Query) SetParam(name, val string) *Query + func (q *Query) String() string + type Request struct + Asin string + func (r *Request) NumResults(n int) *Request + func (req *Request) ParseURL(uri string) (*Request, error) + func (req *Request) String() string + type Response struct + Product Product + Products []Product + TotalResults int + type Search struct + func NewSearch(kw ...string) *Search + func (s *Search) Author(kw ...string) *Search + func (s *Search) Encode() string + func (s *Search) Narrator(kw ...string) *Search + func (s *Search) String() string + func (s *Search) Title(kw ...string) *Search