Documentation ¶
Index ¶
- func AreNewEntriesAvailable(c appengine.Context, subscriptions []Subscription) (bool, error)
- func DeleteArticlesWithinScope(c appengine.Context, scope ArticleScope) error
- func DeleteFolder(c appengine.Context, ref FolderRef) error
- func DeleteTag(c appengine.Context, userID UserID, tagID string) error
- func FolderExists(c appengine.Context, ref FolderRef) (bool, error)
- func IsFeedAvailable(c appengine.Context, url string) (bool, error)
- func IsFieldMismatch(err error) bool
- func IsFolderDuplicate(c appengine.Context, userID UserID, title string) (bool, error)
- func IsSubscriptionDuplicate(c appengine.Context, userID UserID, subscriptionURL string) (bool, error)
- func MarkAllAsRead(c appengine.Context, scope ArticleScope) (int, error)
- func MoveArticles(c appengine.Context, subRef SubscriptionRef, destRef FolderRef) error
- func MoveSubscription(c appengine.Context, subRef SubscriptionRef, destRef FolderRef) error
- func RemoveTag(c appengine.Context, userID UserID, tag string) error
- func RenameFolder(c appengine.Context, ref FolderRef, title string) error
- func RenameSubscription(c appengine.Context, ref SubscriptionRef, title string) error
- func SetProperty(c appengine.Context, ref ArticleRef, propertyName string, propertyValue bool) ([]string, error)
- func SetTags(c appengine.Context, ref ArticleRef, tags []string) ([]string, error)
- func SubscriptionExists(c appengine.Context, ref SubscriptionRef) (bool, error)
- func SubscriptionsAsOPML(c appengine.Context, userID UserID) (*rss.OPML, error)
- func TagExists(c appengine.Context, userID UserID, tagID string) (bool, error)
- func Unsubscribe(c appengine.Context, ref SubscriptionRef) error
- func UpdateAllSubscriptions(c appengine.Context, userID UserID) error
- func UpdateFeed(c appengine.Context, parsedFeed *rss.Feed, favIconURL string, ...) error
- func UpdateMedia(c appengine.Context, entryKey *datastore.Key, entry *rss.Entry) error
- func UpdateSubscription(c appengine.Context, url string, ref SubscriptionRef) (int, error)
- func UpdateUnreadCounts(c appengine.Context, ch chan<- Subscription, subscriptionKey *datastore.Key, ...)
- func WebToFeedURL(c appengine.Context, url string, title *string) (string, error)
- type Article
- func (article Article) HasProperty(propName string) bool
- func (article Article) IsLiked() bool
- func (article Article) IsUnread() bool
- func (article Article) LikeCount(c appengine.Context) (int, error)
- func (article *Article) SetProperty(propName string, set bool)
- func (article *Article) SetTag(tagName string, set bool)
- func (article *Article) ToggleProperty(propName string)
- type ArticleExtras
- type ArticleFilter
- type ArticlePage
- type ArticleRef
- type ArticleScope
- type BatchOp
- type BatchWriter
- type Entry
- type EntryMedia
- type EntryMeta
- type Feed
- type FeedMeta
- type FeedSubscriber
- type FeedUsage
- type Folder
- type FolderRef
- type StorageInfo
- type Subscription
- type SubscriptionRef
- type Tag
- type User
- type UserID
- type UserSubscriptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreNewEntriesAvailable ¶
func AreNewEntriesAvailable(c appengine.Context, subscriptions []Subscription) (bool, error)
func DeleteArticlesWithinScope ¶
func DeleteArticlesWithinScope(c appengine.Context, scope ArticleScope) error
func IsFieldMismatch ¶
func IsFolderDuplicate ¶
func IsSubscriptionDuplicate ¶
func MarkAllAsRead ¶
func MarkAllAsRead(c appengine.Context, scope ArticleScope) (int, error)
func MoveArticles ¶
func MoveArticles(c appengine.Context, subRef SubscriptionRef, destRef FolderRef) error
func MoveSubscription ¶
func MoveSubscription(c appengine.Context, subRef SubscriptionRef, destRef FolderRef) error
func RenameSubscription ¶
func RenameSubscription(c appengine.Context, ref SubscriptionRef, title string) error
func SetProperty ¶
func SubscriptionExists ¶
func SubscriptionExists(c appengine.Context, ref SubscriptionRef) (bool, error)
func SubscriptionsAsOPML ¶
func Unsubscribe ¶
func Unsubscribe(c appengine.Context, ref SubscriptionRef) error
func UpdateFeed ¶
func UpdateMedia ¶
func UpdateSubscription ¶
func UpdateUnreadCounts ¶
func UpdateUnreadCounts(c appengine.Context, ch chan<- Subscription, subscriptionKey *datastore.Key, subscription Subscription)
Types ¶
type Article ¶
type Article struct { ID string `datastore:"-" json:"id"` Source string `datastore:"-" json:"source"` Details *Entry `datastore:"-" json:"details"` Media []*EntryMedia `datastore:"-" json:"media,omitempty"` UpdateIndex int64 `json:"-"` Fetched time.Time `json:"time"` Published time.Time `json:"published"` Entry *datastore.Key `json:"-"` Properties []string `json:"properties"` Tags []string `json:"tags"` }
func (Article) HasProperty ¶
func (*Article) SetProperty ¶
func (*Article) ToggleProperty ¶
type ArticleExtras ¶
type ArticleExtras struct {
LikeCount int `json:"likeCount"`
}
func LoadArticleExtras ¶
func LoadArticleExtras(c appengine.Context, ref ArticleRef) (ArticleExtras, error)
type ArticleFilter ¶
type ArticleFilter struct { ArticleScope Property string `json:"p,omitempty"` Tag string `json:"t,omitempty"` }
func ArticleFilterFromJSON ¶
func ArticleFilterFromJSON(userID UserID, filterAsJSON string) (ArticleFilter, error)
type ArticlePage ¶
type ArticlePage struct { Articles []Article `json:"articles"` Continue string `json:"continue,omitempty"` }
func NewArticlePage ¶
func NewArticlePage(c appengine.Context, filter ArticleFilter, start string) (*ArticlePage, error)
type ArticleRef ¶
type ArticleRef struct { SubscriptionRef ArticleID string }
type ArticleScope ¶
type ArticleScope SubscriptionRef
func ArticleScopeFromJSON ¶
func ArticleScopeFromJSON(userID UserID, scopeAsJSON string) (ArticleScope, error)
type BatchWriter ¶
type BatchWriter struct {
// contains filtered or unexported fields
}
func NewBatchWriter ¶
func NewBatchWriter(c appengine.Context, op BatchOp) *BatchWriter
func NewBatchWriterWithSize ¶
func NewBatchWriterWithSize(c appengine.Context, op BatchOp, size int) *BatchWriter
func (*BatchWriter) Close ¶
func (writer *BatchWriter) Close() error
func (*BatchWriter) Enqueue ¶
func (writer *BatchWriter) Enqueue(key *datastore.Key, object interface{}) error
func (*BatchWriter) EnqueueKey ¶
func (writer *BatchWriter) EnqueueKey(key *datastore.Key) error
func (*BatchWriter) Flush ¶
func (writer *BatchWriter) Flush() error
func (BatchWriter) Written ¶
func (writer BatchWriter) Written() int
type EntryMedia ¶
type EntryMedia struct { URL string `json:"url"` Type string `json:"type"` Title string `json:"-"` Entry *datastore.Key `json:"-"` }
func MediaForEntry ¶
type Feed ¶
type FeedSubscriber ¶
type StorageInfo ¶
type StorageInfo struct {
Version int
}
type Subscription ¶
type Subscription struct { ID string `datastore:"-" json:"id"` Link string `datastore:"-" json:"link"` FavIconURL string `datastore:"-" json:"favIconUrl"` Parent string `datastore:"-" json:"parent,omitempty"` Updated time.Time `json:"-"` Subscribed time.Time `json:"-"` Feed *datastore.Key `json:"-"` MaxUpdateIndex int64 `json:"-"` Title string `json:"title"` UnreadCount int `json:"unread"` }
type SubscriptionRef ¶
func SubscriptionRefFromJSON ¶
func SubscriptionRefFromJSON(userID UserID, refAsJSON string) (SubscriptionRef, error)
func (SubscriptionRef) IsSubscriptionExplicit ¶
func (ref SubscriptionRef) IsSubscriptionExplicit() bool
type UserSubscriptions ¶
type UserSubscriptions struct { Subscriptions []Subscription `json:"subscriptions"` Folders []Folder `json:"folders"` Tags []Tag `json:"tags"` }
func NewUserSubscriptions ¶
func NewUserSubscriptions(c appengine.Context, userID UserID) (*UserSubscriptions, error)
Click to show internal directories.
Click to hide internal directories.