model

package
v0.0.0-...-a65c540 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonSearchResultModel

type CommonSearchResultModel struct {
	URL          string   `json:"url"`
	Title        string   `json:"title"`
	Image        string   `json:"image"`
	AlreadySaved bool     `json:"already_saved"`
	Description  string   `json:"description"`
	Categories   []string `json:"categories"`
}

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 GPodcastTag struct {
	Tag   string `json:"tag"`
	Title string `json:"title"`
	Usage int    `json:"usage"`
}

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 OpmlExportHead struct {
	Text        string    `xml:",chardata"`
	Title       string    `xml:"title"`
	DateCreated time.Time `xml:"dateCreated"`
}

type OpmlExportModel

type OpmlExportModel struct {
	XMLName xml.Name       `xml:"opml"`
	Text    string         `xml:",chardata"`
	Version string         `xml:"version,attr"`
	Head    OpmlExportHead `xml:"head"`
	Body    OpmlBody       `xml:"body"`
}

type OpmlHead

type OpmlHead struct {
	Text  string `xml:",chardata"`
	Title string `xml:"title"`
}

type OpmlModel

type OpmlModel struct {
	XMLName xml.Name `xml:"opml"`
	Text    string   `xml:",chardata"`
	Version string   `xml:"version,attr"`
	Head    OpmlHead `xml:"head"`
	Body    OpmlBody `xml:"body"`
}

type OpmlOutline

type OpmlOutline struct {
	Title    string        `xml:"title,attr"`
	XmlUrl   string        `xml:"xmlUrl,attr"`
	Text     string        `xml:",chardata"`
	AttrText string        `xml:"text,attr"`
	Type     string        `xml:"type,attr"`
	Outline  []OpmlOutline `xml:"outline"`
}

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 RssItemEnclosure struct {
	Text   string `xml:",chardata"`
	URL    string `xml:"url,attr"`
	Length string `xml:"length,attr"`
	Type   string `xml:"type,attr"`
}

type RssItemGuid

type RssItemGuid struct {
	Text        string `xml:",chardata"`
	IsPermaLink string `xml:"isPermaLink,attr"`
}

type RssItemImage

type RssItemImage struct {
	Text string `xml:",chardata"`
	Href string `xml:"href,attr"`
	URL  string `xml:"url"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL