Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SubScope = Scope{"subscription"}
)
Scopes of oauth2.0
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { AuthCode string `json:"auth_code" bson:"auth_code"` Token string `json:"token" bson:"token"` RefreshToken string `json:"refresh_token" bson:"refresh_token"` UserID *protos.ObjectID `json:"user_id" bson:"user_id"` Created time.Time `json:"created" bson:"created"` Expires int `json:"expires" bson:"expires"` }
AccessToken contains the information to provide user access within oAuth scope
type AuthCode ¶
type AuthCode struct { Code string `json:"code" bson:"code"` ClientID string `json:"client_id" bson:"client_id"` UserID *protos.ObjectID `json:"user_id" bson:"user_id"` Scope Scope `json:"scope" bson:"scope"` }
AuthCode is the authorization code of oauth2.0
type Category ¶
type Category struct { Text string `xml:"text,attr" json:"text"` Category []Category `xml:"category" json:"category"` }
Category contains the main category and secondary categories
type Enclosure ¶
type Enclosure struct {
MP3 string `json:"mp3" bson:"mp3" xml:"url,attr"`
}
Enclosure represents enclosure xml object that contains mp3 data
type EpiImage ¶
type EpiImage struct {
HREF string `xml:"href,attr"`
}
EpiImage is the image container for episodes
type EpiThumbnail ¶
type EpiThumbnail struct {
URL string `xml:"url,attr"`
}
EpiThumbnail is the thumbnail container for rss episodes
type Image ¶
type Image struct { Title string `json:"title" bson:"title" xml:"title"` URL string `json:"url" bson:"url" xml:"url"` }
Image is the RSS image container
type RSSEpisode ¶
type RSSEpisode struct { ID primitive.ObjectID `json:"_id" bson:"_id" xml:"id"` PodcastID primitive.ObjectID `json:"podcast_id" bson:"podcast_id"` Title string `json:"title" bson:"title" xml:"title"` Subtitle string `json:"subtitle" bson:"subtitle" xml:"subtitle"` Author string `json:"author" bson:"author" xml:"author"` Type string `json:"type" bson:"type" xml:"type"` Image EpiImage `json:"image" bson:"image" xml:"image"` Thumbnail EpiThumbnail `json:"thumbnail" bson:"thumbnail" xml:"content>thumbnail"` PubDate string `json:"pub_date" bson:"pub_date" xml:"pubDate"` Description string `json:"description" bson:"description" xml:"description"` Summary string `json:"summary" bson:"summary" xml:"summary"` Season int `json:"season" bson:"season" xml:"season"` Episode int `json:"episode" bson:"episode" xml:"episode"` Category []Category `json:"category" bson:"category" xml:"category"` Explicit string `json:"explicit" bson:"explicit" xml:"explicit"` Enclosure Enclosure `json:"enclosure" bson:"enclosure" xml:"enclosure"` Duration string `json:"duration" bson:"duration" xml:"duration"` }
RSSEpisode holds information about a single episode of a podcast within the rss feed
type RSSFeed ¶
type RSSFeed struct {
RSSPodcast RSSPodcast `xml:"channel"`
}
RSSFeed is the container to hold all the podcast info
type RSSPodcast ¶
type RSSPodcast struct { ID primitive.ObjectID `json:"_id" bson:"_id"` Title string `json:"title" bson:"title" xml:"title"` Author string `json:"author" bson:"author" xml:"author"` Type string `json:"type" bson:"type" xml:"type"` Subtitle string `json:"subtitle" bson:"subtitle" xml:"subtitle"` Summary string `json:"summary" bson:"summary" xml:"summary"` Link string `json:"link" bson:"link" xml:"Default link"` Image Image `json:"image" bson:"image" xml:"image"` Explicit string `json:"explicit" bson:"explicit" xml:"explicit"` Language string `json:"locale" bson:"locale" xml:"language"` Keywords string `json:"keywords" bson:"keywords" xml:"keywords"` Category []Category `json:"category" bson:"category" xml:"category"` PubDate string `json:"pubdate" bson:"pubdate" xml:"pubDate"` LastBuildDate string `json:"last_build_date" bson:"last_build_date" xml:"lastBuildDate"` RSSEpisodes []RSSEpisode `json:"episodes" bson:"episodes" xml:"item"` NewFeedURL string `json:"new_feed_url" bson:"new_feed_url" xml:"new-feed-url"` RSS string `json:"rss" bson:"rss"` }
RSSPodcast holds podcast info from the rss feed
Click to show internal directories.
Click to hide internal directories.