Documentation ¶
Index ¶
- type ChannelFetchData
- type ContentFetchData
- type FeedlyRefreshTokenResopnse
- type Fetcher
- func (fe *Fetcher) FetchChannelContents(sourceID string, sourceType string) ([]ContentFetchData, error)
- func (fe *Fetcher) FetchChannelData(url string) (ChannelFetchData, error)
- func (fe *Fetcher) FetchFeedlyContents(categoryID string) ([]ContentFetchData, error)
- func (fe *Fetcher) FetchFeedlySources(categoryID string) ([]ChannelFetchData, error)
- func (fe *Fetcher) FetchVimeoChannelContents(userID string) ([]ContentFetchData, error)
- func (fe *Fetcher) FetchYoutubeChannelContents(channelID string) ([]ContentFetchData, error)
- func (fe *Fetcher) FetchYoutubeContent(channelIDs []string, contents map[string][]ContentFetchData) map[string]error
- func (fe *Fetcher) FetcherVimeoContent(userIDs []string, contents map[string][]ContentFetchData) map[string]error
- func (fe *Fetcher) GetSourceID(url string) (string, error)
- func (fe *Fetcher) RefreshFeedlyToken() (string, time.Time, error)
- func (fe *Fetcher) SourceType(url string) string
- func (fe *Fetcher) UpdateFeedlyAccessToken(t string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelFetchData ¶
type ChannelFetchData struct { Title string Description string IconURL string CoverURL string PublishedAt *time.Time WebsiteURL string SourceID string SkateSource bool Lang string }
Abstract representation of a Source from a channel
type ContentFetchData ¶
type FeedlyRefreshTokenResopnse ¶
type FeedlyRefreshTokenResopnse struct { Provider string `json:"provider"` IsNewAccount bool `json:"is_new_account"` Plan string `json:"plan"` ID string `json:"id"` Scope string `json:"scope"` AccessToken string `json:"access_token"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` }
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func New ¶
func New(v *vimeo.VimeoClient, y *youtube.YoutubeClient, f *feedly.FeedlyClient) *Fetcher
func (*Fetcher) FetchChannelContents ¶
func (fe *Fetcher) FetchChannelContents(sourceID string, sourceType string) ([]ContentFetchData, error)
func (*Fetcher) FetchChannelData ¶
func (fe *Fetcher) FetchChannelData(url string) (ChannelFetchData, error)
For a given channel URL, will fetch the vimeo or youtube channel data
func (*Fetcher) FetchFeedlyContents ¶
func (fe *Fetcher) FetchFeedlyContents(categoryID string) ([]ContentFetchData, error)
func (*Fetcher) FetchFeedlySources ¶
func (fe *Fetcher) FetchFeedlySources(categoryID string) ([]ChannelFetchData, error)
func (*Fetcher) FetchVimeoChannelContents ¶
func (fe *Fetcher) FetchVimeoChannelContents(userID string) ([]ContentFetchData, error)
func (*Fetcher) FetchYoutubeChannelContents ¶
func (fe *Fetcher) FetchYoutubeChannelContents(channelID string) ([]ContentFetchData, error)
func (*Fetcher) FetchYoutubeContent ¶
func (*Fetcher) FetcherVimeoContent ¶
func (*Fetcher) RefreshFeedlyToken ¶
func (*Fetcher) SourceType ¶
func (*Fetcher) UpdateFeedlyAccessToken ¶
Click to show internal directories.
Click to hide internal directories.