Documentation ¶
Index ¶
- type BaseModel
- type Client
- func (r *Client) CreateEntries(pos []*ModelEntry) error
- func (r *Client) CreateFeed(feedURL, homeURL string) (*ModelFeed, error)
- func (r *Client) CreateUser(username, password string) error
- func (r *Client) CreateUserEntries(pos []*ModeUserEntryRelation) error
- func (r *Client) CreateUserFeed(userID, feedID int64, title string) error
- func (r *Client) DeleteUserFeed(userID, feedID int64) error
- func (r *Client) DeleteUserFeedTag(userID int64, tagName string) error
- func (r *Client) GetFeedByURL(url string) (*ModelFeed, error)
- func (r *Client) GetUser(username string) (*ModelUser, error)
- func (r *Client) GetUserEntryLatestID(userID int64) (int64, error)
- func (r *Client) ListEntryByLatestID(feedIDs []int64, latestEntryID int64, limit int) ([]*ModelEntry, error)
- func (r *Client) ListFeedURL() ([]string, error)
- func (r *Client) ListFeedUserIDs(feedID int64) ([]int64, error)
- func (r *Client) ListUserEntry(userID int64, readed, starred *bool, feedID *string, count int) ([]*ModeUserEntryRelation, error)
- func (r *Client) ListUserFeed(userID int64) ([]*ModelUserFeedRelation, error)
- func (r *Client) ListUserFeedIDs(userID int64) ([]int64, error)
- func (r *Client) ListUserFeedTagNames(userID int64, feedIDs []int64) (map[int64]string, error)
- func (r *Client) ListUserTagNames(userID int64) ([]string, error)
- func (r *Client) Login(username, password string) (string, error)
- func (r *Client) MGetEntry(ids []int64) (map[int64]*ModelEntry, error)
- func (r *Client) MGetFeed(ids []int64) (map[int64]*ModelFeed, error)
- func (r *Client) RenameUserFeedTag(userID int64, oldTag, newTag string) error
- func (r *Client) UpdateUserEntryOffset(userID, latest int64) error
- func (r *Client) UpdateUserEntryStatus(userID int64, ids []int64, read, star *bool) error
- func (r *Client) UpdateUserFeedTag(userID, feedID int64, newTag string) error
- func (r *Client) UpdateUserFeedTitle(userID, feedID int64, newTitle string) error
- type ModeUserEntryOffset
- type ModeUserEntryRelation
- type ModelEntry
- type ModelFeed
- type ModelUser
- type ModelUserFeedRelation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateEntries ¶
func (r *Client) CreateEntries(pos []*ModelEntry) error
func (*Client) CreateFeed ¶
func (*Client) CreateUser ¶
func (*Client) CreateUserEntries ¶
func (r *Client) CreateUserEntries(pos []*ModeUserEntryRelation) error
func (*Client) CreateUserFeed ¶
func (*Client) DeleteUserFeed ¶
func (*Client) DeleteUserFeedTag ¶
func (*Client) GetUserEntryLatestID ¶
func (*Client) ListEntryByLatestID ¶
func (*Client) ListFeedURL ¶
func (*Client) ListUserEntry ¶
func (*Client) ListUserFeed ¶
func (r *Client) ListUserFeed(userID int64) ([]*ModelUserFeedRelation, error)
func (*Client) ListUserFeedTagNames ¶
func (*Client) RenameUserFeedTag ¶
func (*Client) UpdateUserEntryOffset ¶
func (*Client) UpdateUserEntryStatus ¶
func (*Client) UpdateUserFeedTag ¶
type ModeUserEntryOffset ¶
type ModeUserEntryOffset struct { BaseModel UserID int64 `gorm:"column:user_id"` // FeedID int64 `gorm:"column:feed_id"` Latest int64 `gorm:"column:latest"` }
func (ModeUserEntryOffset) TableName ¶
func (ModeUserEntryOffset) TableName() string
type ModeUserEntryRelation ¶
type ModeUserEntryRelation struct { BaseModel UserID int64 `gorm:"column:user_id"` FeedID int64 `gorm:"column:feed_id"` EntryID int64 `gorm:"column:entry_id"` Readed bool `gorm:"column:readed"` Starred bool `gorm:"column:starred"` }
func (ModeUserEntryRelation) TableName ¶
func (ModeUserEntryRelation) TableName() string
type ModelEntry ¶
type ModelEntry struct { BaseModel FeedID int64 `gorm:"column:feed_id"` Title string `gorm:"column:title"` URL string `gorm:"column:url"` Author string `gorm:"column:author"` }
func (ModelEntry) TableName ¶
func (ModelEntry) TableName() string
type ModelFeed ¶
type ModelUser ¶
type ModelUserFeedRelation ¶
type ModelUserFeedRelation struct { BaseModel UserID int64 `gorm:"column:user_id"` FeedID int64 `gorm:"column:feed_id"` TagName string `gorm:"column:tag_name"` Title string `gorm:"column:title"` }
func (ModelUserFeedRelation) TableName ¶
func (ModelUserFeedRelation) TableName() string
Click to show internal directories.
Click to hide internal directories.