feedly

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AsRead = iota
	AsUnRead
	AsSaved
	AsUnSaved
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CardDetails

type CardDetails struct {
	Brand           string `json:"brand,omitempty"`
	ExpirationMonth int    `json:"expirationMonth,omitempty"`
	ExpirationYear  int    `json:"expirationYear,omitempty"`
	Last4           string `json:"last4,omitempty"`
	Country         string `json:"country,omitempty"`
}

type Category

type Category struct {
	Id           string          `json:"id,omitempty"`
	Label        string          `json:"label,omitempty"`
	Description  string          `json:"description,omitempty"`
	Customizable bool            `json:"customizable,omitempty"`
	Enterprise   bool            `json:"enterprise,omitempty"`
	Cover        string          `json:"cover,omitempty"`
	Created      int             `json:"created,omitempty"`
	NumFeeds     int             `json:"numFeeds,omitempty"`
	Feeds        []*Subscription `json:"feeds,omitempty"`
}

type CategoryService

type CategoryService interface {
	GetCategories(withStats bool) ([]*Category, error)
	GetCategory(categoryId string) (*Category, error)
}

type Content

type Content struct {
	Content   string `json:"content,omitempty"`
	Direction string `json:"direction,omitempty"`
}

type Entry

type Entry struct {
	Id              string      `json:"id,omitempty"`
	Title           string      `json:"title,omitempty"`
	Author          string      `json:"author,omitempty"`
	OriginId        string      `json:"originId,omitempty"`
	Fingerprint     string      `json:"fingerprint,omitempty"`
	Sid             string      `json:"sid,omitempty"`
	Crawled         int         `json:"crawled,omitempty"`
	Recrawled       int         `json:"recrawled,omitempty"`
	Published       int         `json:"published,omitempty"`
	Updated         int         `json:"updated,omitempty"`
	Engagement      int         `json:"engagement,omitempty"`
	ActionTimestamp int         `json:"actionTimestamp,omitempty"`
	Unread          bool        `json:"unread,omitempty"`
	Keywords        []string    `json:"keywords,omitempty"`
	Origin          *Origin     `json:"origin,omitempty"`
	Content         *Content    `json:"content,omitempty"`
	Summary         *Content    `json:"summary,omitempty"`
	Alternate       []*Link     `json:"alternate,omitempty"`
	Enclosure       []*Link     `json:"enclosure,omitempty"`
	Canonical       []*Link     `json:"canonical,omitempty"`
	Visual          *Visual     `json:"visual,omitempty"`
	Thumbnail       []*Visual   `json:"thumbnail,viomitempty"`
	Tags            []*Tag      `json:"tags,omitempty"`
	Categories      []*Category `json:"categories,omitempty"`
}

type EntryService

type EntryService interface {
	GetEntry(entryId string) (*Entry, error)
}

type Feed

type Feed struct {
	Id            string   `json:"id,omitempty"`
	FeedId        string   `json:"feedId,omitempty"`
	Title         string   `json:"title,omitempty"`
	Description   string   `json:"description,omitempty"`
	Language      string   `json:"language,omitempty"`
	Website       string   `json:"website,omitempty"`
	Topics        []string `json:"topics,omitempty"`
	Velocity      float64  `json:"velocity,omitempty"`
	Subscribers   int      `json:"subscribers,omitempty"`
	State         string   `json:"state,omitempty"`
	LastUpdated   int      `json:"lastUpdated,omitempty"`
	IconUrl       string   `json:"iconUrl,omitempty"`
	VisualUrl     string   `json:"visualUrl,omitempty"`
	CoverUrl      string   `json:"coverUrl,omitempty"`
	ContentType   string   `json:"contentType,omitempty"`
	CoverColor    string   `json:"coverColor,omitempty"`
	DeliciousTags []string `json:"deliciousTags,omitempty"`
	Partial       bool     `json:"partial,omitempty"`
	Featured      bool     `json:"featured,omitempty"`
}

type FeedService

type FeedService interface {
	GetFeed(feedId string) (*Feed, error)
	SearchFeeds(query, locale string, count int) ([]*Feed, error)
}

type Feedly

type Feedly struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Feedly) CategoryAllId

func (fly *Feedly) CategoryAllId() (string, error)

func (*Feedly) CategoryId

func (fly *Feedly) CategoryId(labelOrUuid string) (string, error)

func (*Feedly) FeedId

func (fly *Feedly) FeedId(url string) (string, error)

func (*Feedly) GetCategories

func (fly *Feedly) GetCategories(withStats bool) ([]*Category, error)

func (*Feedly) GetCategory

func (fly *Feedly) GetCategory(categoryId string) (*Category, error)

func (*Feedly) GetContentsOfStream

func (fly *Feedly) GetContentsOfStream(streamId, continuation string, orderDesc, unreadOnly bool,
	count, newerThan int) (*Stream, error)

func (*Feedly) GetEntry

func (fly *Feedly) GetEntry(entryId string) (*Entry, error)

func (*Feedly) GetEntryIdsOfStream

func (fly *Feedly) GetEntryIdsOfStream(streamId, continuation string, orderDesc, unreadOnly bool,
	count, newerThan int64) (*Stream, error)

A feedId, a categoryId, a tagId or a system category ids can be used as stream ids.

func (*Feedly) GetFeed

func (fly *Feedly) GetFeed(feedId string) (*Feed, error)

func (*Feedly) GetProfile

func (fly *Feedly) GetProfile() (*Profile, error)

func (*Feedly) GetSubscriptions

func (fly *Feedly) GetSubscriptions() ([]*Subscription, error)

func (*Feedly) GetTags

func (fly *Feedly) GetTags() ([]*Tag, error)

func (*Feedly) GetUnreads

func (fly *Feedly) GetUnreads(streamId string, autoRefresh bool, newerThan int) ([]*Unread, error)

func (*Feedly) MarkEntriesAsAction

func (fly *Feedly) MarkEntriesAsAction(entryIds []string, action MarkAction) error

func (*Feedly) SearchContentsOfStream

func (fly *Feedly) SearchContentsOfStream(streamId, continuation, query string, count, newerThan int) (*Stream, error)

func (*Feedly) SearchFeeds

func (fly *Feedly) SearchFeeds(query, locale string, count int) ([]*Feed, error)

func (*Feedly) Subscribe

func (fly *Feedly) Subscribe(feedId string, label string, categoriesIds []string) (*Subscription, error)

func (*Feedly) TagAllId

func (fly *Feedly) TagAllId() (string, error)

func (*Feedly) TagId

func (fly *Feedly) TagId(labelOrUuid string) (string, error)

func (*Feedly) TagReadId

func (fly *Feedly) TagReadId() (string, error)

func (*Feedly) TagSavedId

func (fly *Feedly) TagSavedId() (string, error)

func (*Feedly) UserId

func (fly *Feedly) UserId() (string, error)
type Link struct {
	Href string `json:"href,omitempty"`
	Type string `json:"type,omitempty"`
}

type LoginProvider

type LoginProvider struct {
	Id         string `json:"id,omitempty"`
	Verified   bool   `json:"verified,omitempty"`
	Picture    string `json:"picture,omitempty"`
	Provider   string `json:"provider,omitempty"`
	ProviderId string `json:"providerId,omitempty"`
	FullName   string `json:"fullName,omitempty"`
}

type MainService

type MainService interface {
	UserId() (string, error)
	FeedId(url string) (string, error)
	CategoryId(labelOrUuid string) (string, error)
	CategoryAllId() (string, error)
	TagId(labelOrUuid string) (string, error)
	TagAllId() (string, error)
	TagSavedId() (string, error)
	TagReadId() (string, error)
}

type MarkAction

type MarkAction int

type Marker

type Marker struct {
	UnreadCounts []*Unread `json:"unreadcounts,omitempty"`
}

type MarkerService

type MarkerService interface {
	GetUnreads(streamId string, autorefresh bool, newerThan int) ([]*Unread, error)
	MarkEntriesAsAction(entryIds []string, action MarkAction) error
}

type Origin

type Origin struct {
	StreamId string `json:"streamId,omitempty"`
	Title    string `json:"title,omitempty"`
	HtmlUrl  string `json:"htmlUrl,omitempty"`
}

type Profile

type Profile struct {
	Id                          string           `json:"id,omitempty"`
	Email                       string           `json:"email,omitempty"`
	GivenName                   string           `json:"givenName,omitempty"`
	FamilyName                  string           `json:"familyName,omitempty"`
	FullName                    string           `json:"fullName,omitempty"`
	Picture                     string           `json:"picture,omitempty"`
	Gender                      string           `json:"gender,omitempty"`
	Locale                      string           `json:"locale,omitempty"`
	Google                      string           `json:"google,omitempty"`
	Reader                      string           `json:"reader,omitempty"`
	Wave                        string           `json:"wave,omitempty"`
	Client                      string           `json:"client,omitempty"`
	Source                      string           `json:"source,omitempty"`
	Created                     int              `json:"created,omitempty"`
	Product                     string           `json:"product,omitempty"`
	ProductExpiration           int              `json:"productExpiration,omitempty"`
	ProductRenewalAmount        int              `json:"productRenewalAmount,omitempty"`
	UpgradeDate                 int              `json:"upgradeDate,omitempty"`
	SubscriptionRenewalDate     int              `json:"subscriptionRenewalDate,omitempty"`
	SubscriptionPaymentProvider string           `json:"subscriptionPaymentProvider,omitempty"`
	SubscriptionStatus          string           `json:"subscriptionStatus,omitempty"`
	EvernoteStoreUrl            string           `json:"evernoteStoreUrl,omitempty"`
	EvernoteWebApiPrefix        string           `json:"evernoteWebApiPrefix,omitempty"`
	EvernotePartialOAuth        bool             `json:"evernotePartialOAuth,omitempty"`
	RefPage                     string           `json:"refPage,omitempty"`
	LandingPage                 string           `json:"landingPage,omitempty"`
	LoginProviders              []*LoginProvider `json:"logins,omitempty"`
	CardDetails                 *CardDetails     `json:"cardDetails,omitempty"`
	TwitterUserId               string           `json:"twitterUserId,omitempty"`
	FacebookUserId              string           `json:"facebookUserId,omitempty"`
	WordPressId                 string           `json:"wordPressId,omitempty"`
	WindowsLiveId               string           `json:"windowsLiveId,omitempty"`
	EvernoteUserId              string           `json:"evernoteUserId,omitempty"`
	EvernoteConnected           bool             `json:"evernoteConnected,omitempty"`
	PocketConnected             bool             `json:"pocketConnected,omitempty"`
	DropboxConnected            bool             `json:"dropboxConnected,omitempty"`
	TwitterConnected            bool             `json:"twitterConnected,omitempty"`
	FacebookConnected           bool             `json:"facebookConnected,omitempty"`
	WordPressConnected          bool             `json:"wordPressConnected,omitempty"`
	WindowsLiveConnected        bool             `json:"windowsLiveConnected,omitempty"`
	InstapaperConnected         bool             `json:"instapaperConnected,omitempty"`
}

type ProfileService

type ProfileService interface {
	GetProfile() (*Profile, error)
}

type SearchResult

type SearchResult struct {
	Hint    string   `json:"hint,omitempty"`
	Related []string `json:"related,omitempty"`
	Feeds   []*Feed  `json:"results,omitempty"`
}

type Stream

type Stream struct {
	Id           string   `json:"id,omitempty"`           // stream id
	Ids          []string `json:"ids,omitempty"`          // entry ids
	Continuation string   `json:"continuation,omitempty"` // next stream id for pagination
	Title        string   `json:"title,omitempty"`
	Direction    string   `json:"direction,omitempty"`
	Updated      int      `json:"updated,omitempty"`
	Alternate    []*Link  `json:"alternate,omitempty"`
	Items        []*Entry `json:"items,omitempty"`
}

type StreamService

type StreamService interface {
	GetEntryIdsOfStream(streamId, continuation string, orderDesc, unreadOnly bool,
		count, newerThan int64) (*Stream, error)
	GetContentsOfStream(streamId, continuation string, orderDesc, unreadOnly bool,
		count, newerThan int) (*Stream, error)
	SearchContentsOfStream(streamId, continuation, query string, count, newerThan int) (*Stream, error)
}

type Subscription

type Subscription struct {
	Id          string      `json:"id,omitempty"`
	FeedId      string      `json:"feedId,omitempty"`
	SortId      string      `json:"sortid,omitempty"`
	Title       string      `json:"title,omitempty"`
	Description string      `json:"description,omitempty"`
	ContentType string      `json:"contentType,omitempty"`
	Language    string      `json:"language,omitempty"`
	Website     string      `json:"website,omitempty"`
	IconUrl     string      `json:"iconUrl,omitempty"`
	CoverUrl    string      `json:"coverUrl,omitempty"`
	VisualUrl   string      `json:"visualUrl,omitempty"`
	CoverColor  string      `json:"coverColor,omitempty"`
	Subscribers int         `json:"subscribers,omitempty"`
	Added       int         `json:"added,omitempty"`
	Updated     int         `json:"updated,omitempty"`
	Velocity    float64     `json:"velocity,omitempty"`
	Partial     bool        `json:"partial,omitempty"`
	Categories  []*Category `json:"categories,omitempty"`
	Topics      []string    `json:"topics,omitempty"`
}

type SubscriptionService

type SubscriptionService interface {
	GetSubscriptions() ([]*Subscription, error)
	Subscribe(feedId string, label string, categoriesIds []string) (*Subscription, error)
}

type Tag

type Tag struct {
	Id          string `json:"id,omitempty"`
	Label       string `json:"label,omitempty"`
	Description string `json:"description,omitempty"`
}

type TagService

type TagService interface {
	GetTags() ([]*Tag, error)
}

type Threshold

type Threshold struct {
	// contains filtered or unexported fields
}

type Unread

type Unread struct {
	Id      string `json:"id,omitempty"`
	Count   int    `json:"count,omitempty"`
	Updated int    `json:"updated,omitempty"`
}

type Visual

type Visual struct {
	Url         string `json:"url,omitempty"`
	Width       int    `json:"width,omitempty"`
	Height      int    `json:"height,omitempty"`
	ContentType string `json:"contentType,omitempty"`
}

Jump to

Keyboard shortcuts

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