Documentation ¶
Index ¶
- type CommonSearchResultModel
- type EpisodeSort
- type EpisodesFilter
- type GPodcast
- type GPodcastTag
- type ItunesResponse
- type ItunesSingleResult
- type OpmlBody
- type OpmlExportHead
- type OpmlExportModel
- type OpmlHead
- type OpmlModel
- type OpmlOutline
- type Pagination
- type PodcastAlreadyExistsError
- type PodcastData
- type RssChannel
- type RssItem
- type RssItemEnclosure
- type RssItemGuid
- type RssItemImage
- type RssPodcastData
- type TagAlreadyExistsError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonSearchResultModel ¶
type EpisodeSort ¶
type EpisodeSort string
const ( RELEASE_ASC EpisodeSort = "release_asc" RELEASE_DESC EpisodeSort = "release_desc" DURATION_ASC EpisodeSort = "duration_asc" DURATION_DESC EpisodeSort = "duration_desc" )
type EpisodesFilter ¶
type EpisodesFilter struct { Pagination IsDownloaded *string `uri:"isDownloaded" query:"isDownloaded" json:"isDownloaded" form:"isDownloaded"` IsPlayed *string `uri:"isPlayed" query:"isPlayed" json:"isPlayed" form:"isPlayed"` Sorting EpisodeSort `uri:"sorting" query:"sorting" json:"sorting" form:"sorting"` Q string `uri:"q" query:"q" json:"q" form:"q"` TagIds []string `uri:"tagIds" query:"tagIds[]" json:"tagIds" form:"tagIds[]"` PodcastIds []string `uri:"podcastIds" query:"podcastIds[]" json:"podcastIds" form:"podcastIds[]"` }
func (*EpisodesFilter) SetCounts ¶
func (filter *EpisodesFilter) SetCounts(totalCount int64)
func (*EpisodesFilter) VerifyPaginationValues ¶
func (filter *EpisodesFilter) VerifyPaginationValues()
type GPodcast ¶
type GPodcast struct { URL string `json:"url"` Title string `json:"title"` Author string `json:"author"` Description string `json:"description"` Subscribers int `json:"subscribers"` SubscribersLastWeek int `json:"subscribers_last_week"` LogoURL string `json:"logo_url"` ScaledLogoURL string `json:"scaled_logo_url"` Website string `json:"website"` MygpoLink string `json:"mygpo_link"` AlreadySaved bool `json:"already_saved"` }
type GPodcastTag ¶
type ItunesResponse ¶
type ItunesResponse struct { ResultCount int `json:"resultCount"` Results []ItunesSingleResult `json:"results"` }
type ItunesSingleResult ¶
type ItunesSingleResult struct { WrapperType string `json:"wrapperType"` Kind string `json:"kind"` CollectionID int `json:"collectionId"` TrackID int `json:"trackId"` ArtistName string `json:"artistName"` CollectionName string `json:"collectionName"` TrackName string `json:"trackName"` CollectionCensoredName string `json:"collectionCensoredName"` TrackCensoredName string `json:"trackCensoredName"` CollectionViewURL string `json:"collectionViewUrl"` FeedURL string `json:"feedUrl"` TrackViewURL string `json:"trackViewUrl"` ArtworkURL30 string `json:"artworkUrl30"` ArtworkURL60 string `json:"artworkUrl60"` ArtworkURL100 string `json:"artworkUrl100"` CollectionPrice float64 `json:"collectionPrice"` TrackPrice float64 `json:"trackPrice"` TrackRentalPrice int `json:"trackRentalPrice"` CollectionHdPrice int `json:"collectionHdPrice"` TrackHdPrice int `json:"trackHdPrice"` TrackHdRentalPrice int `json:"trackHdRentalPrice"` ReleaseDate time.Time `json:"releaseDate"` CollectionExplicitness string `json:"collectionExplicitness"` TrackExplicitness string `json:"trackExplicitness"` TrackCount int `json:"trackCount"` Country string `json:"country"` Currency string `json:"currency"` PrimaryGenreName string `json:"primaryGenreName"` ContentAdvisoryRating string `json:"contentAdvisoryRating,omitempty"` ArtworkURL600 string `json:"artworkUrl600"` GenreIds []string `json:"genreIds"` Genres []string `json:"genres"` ArtistID int `json:"artistId,omitempty"` ArtistViewURL string `json:"artistViewUrl,omitempty"` }
type OpmlBody ¶
type OpmlBody struct { Text string `xml:",chardata"` Outline []OpmlOutline `xml:"outline"` }
type OpmlExportHead ¶
type OpmlExportModel ¶
type OpmlOutline ¶
type Pagination ¶
type Pagination struct { Page int `uri:"page" query:"page" json:"page" form:"page" default:1` Count int `uri:"count" query:"count" json:"count" form:"count" default:20` NextPage int `uri:"nextPage" query:"nextPage" json:"nextPage" form:"nextPage"` PreviousPage int `uri:"previousPage" query:"previousPage" json:"previousPage" form:"previousPage"` TotalCount int `uri:"totalCount" query:"totalCount" json:"totalCount" form:"totalCount"` TotalPages int `uri:"totalPages" query:"totalPages" json:"totalPages" form:"totalPages"` }
type PodcastAlreadyExistsError ¶
type PodcastAlreadyExistsError struct {
Url string
}
func (*PodcastAlreadyExistsError) Error ¶
func (e *PodcastAlreadyExistsError) Error() string
type PodcastData ¶
type PodcastData struct { XMLName xml.Name `xml:"rss"` Text string `xml:",chardata"` Itunes string `xml:"itunes,attr"` Atom string `xml:"atom,attr"` Media string `xml:"media,attr"` Psc string `xml:"psc,attr"` Omny string `xml:"omny,attr"` Content string `xml:"content,attr"` Googleplay string `xml:"googleplay,attr"` Acast string `xml:"acast,attr"` Version string `xml:"version,attr"` Channel struct { Text string `xml:",chardata"` Language string `xml:"language"` Link []struct { Text string `xml:",chardata"` Rel string `xml:"rel,attr"` Type string `xml:"type,attr"` Href string `xml:"href,attr"` } `xml:"link"` Title string `xml:"title"` Description string `xml:"description"` Type string `xml:"type"` Summary string `xml:"summary"` Owner struct { Text string `xml:",chardata"` Name string `xml:"name"` Email string `xml:"email"` } `xml:"owner"` Author string `xml:"author"` Copyright string `xml:"copyright"` Explicit string `xml:"explicit"` Category struct { Text string `xml:",chardata"` AttrText string `xml:"text,attr"` Category struct { Text string `xml:",chardata"` AttrText string `xml:"text,attr"` } `xml:"category"` } `xml:"category"` Image struct { Text string `xml:",chardata"` Href string `xml:"href,attr"` URL string `xml:"url"` Title string `xml:"title"` Link string `xml:"link"` } `xml:"image"` Item []struct { Text string `xml:",chardata"` Title string `xml:"title"` Description string `xml:"description"` Encoded string `xml:"encoded"` Summary string `xml:"summary"` EpisodeType string `xml:"episodeType"` Author string `xml:"author"` Image struct { Text string `xml:",chardata"` Href string `xml:"href,attr"` } `xml:"image"` Content []struct { Text string `xml:",chardata"` URL string `xml:"url,attr"` Type string `xml:"type,attr"` Player struct { Text string `xml:",chardata"` URL string `xml:"url,attr"` } `xml:"player"` } `xml:"content"` Guid struct { Text string `xml:",chardata"` IsPermaLink string `xml:"isPermaLink,attr"` } `xml:"guid"` ClipId string `xml:"clipId"` PubDate string `xml:"pubDate"` Duration string `xml:"duration"` Enclosure struct { Text string `xml:",chardata"` URL string `xml:"url,attr"` Length string `xml:"length,attr"` Type string `xml:"type,attr"` } `xml:"enclosure"` Link string `xml:"link"` StitcherId string `xml:"stitcherId"` Episode string `xml:"episode"` } `xml:"item"` } `xml:"channel"` }
PodcastData is
type RssChannel ¶
type RssChannel struct { Text string `xml:",chardata"` Language string `xml:"language"` Link string `xml:"link"` Title string `xml:"title"` Description string `xml:"description"` Type string `xml:"type"` Summary string `xml:"summary"` Image RssItemImage `xml:"image"` Item []RssItem `xml:"item"` Author string `xml:"author"` }
type RssItem ¶
type RssItem struct { Text string `xml:",chardata"` Title string `xml:"title"` Description string `xml:"description"` Encoded string `xml:"encoded"` Summary string `xml:"summary"` EpisodeType string `xml:"episodeType"` Author string `xml:"author"` Image RssItemImage `xml:"image"` Guid RssItemGuid `xml:"guid"` ClipId string `xml:"clipId"` PubDate string `xml:"pubDate"` Duration string `xml:"duration"` Enclosure RssItemEnclosure `xml:"enclosure"` Link string `xml:"link"` Episode string `xml:"episode"` }
type RssItemEnclosure ¶
type RssItemGuid ¶
type RssItemImage ¶
type RssPodcastData ¶
type RssPodcastData struct { XMLName xml.Name `xml:"rss"` Text string `xml:",chardata"` Itunes string `xml:"itunes,attr"` Atom string `xml:"atom,attr"` Media string `xml:"media,attr"` Psc string `xml:"psc,attr"` Omny string `xml:"omny,attr"` Content string `xml:"content,attr"` Googleplay string `xml:"googleplay,attr"` Acast string `xml:"acast,attr"` Version string `xml:"version,attr"` Channel RssChannel `xml:"channel"` }
PodcastData is
type TagAlreadyExistsError ¶
type TagAlreadyExistsError struct {
Label string
}
func (*TagAlreadyExistsError) Error ¶
func (e *TagAlreadyExistsError) Error() string
Click to show internal directories.
Click to hide internal directories.