Documentation ¶
Index ¶
- type MySQLBackend
- func (r *MySQLBackend) AddFeedEntry(ctx context.Context, username *string, feedURL string, ...) error
- func (r *MySQLBackend) AddSubscription(ctx context.Context, username, feedURL, homeURL, title string) (*greader_api.Subscription, error)
- func (r *MySQLBackend) DeleteSubscription(ctx context.Context, username, feedID string) error
- func (r *MySQLBackend) DeleteTag(ctx context.Context, username, name string) error
- func (r *MySQLBackend) ListEntryIDs(ctx context.Context, username string, readed, starred *bool, feedID *string, ...) (string, []int64, error)
- func (r *MySQLBackend) ListFeedURL(ctx context.Context) ([]string, error)
- func (r *MySQLBackend) ListSubscription(ctx context.Context, username string) ([]*greader_api.Subscription, error)
- func (r *MySQLBackend) ListTag(ctx context.Context, username string) ([]string, error)
- func (r *MySQLBackend) LoadEntry(ctx context.Context, username string, entryIDs []string) ([]*greader_api.Entry, error)
- func (r *MySQLBackend) Login(ctx context.Context, username, password string) (string, error)
- func (r *MySQLBackend) Register(ctx context.Context, username, password string) error
- func (r *MySQLBackend) RenameTag(ctx context.Context, username, oldName, newName string) error
- func (r *MySQLBackend) UpdateEntry(ctx context.Context, username string, entryIDs []string, read, starred *bool) error
- func (r *MySQLBackend) UpdateSubscriptionTag(ctx context.Context, username, feedID string, addTag, removeTag string) error
- func (r *MySQLBackend) UpdateSubscriptionTitle(ctx context.Context, username, feedID, title string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLBackend ¶
type MySQLBackend struct {
// contains filtered or unexported fields
}
func New ¶
func New(dsn string, logger greader_api.ILogger) (*MySQLBackend, error)
func (*MySQLBackend) AddFeedEntry ¶
func (r *MySQLBackend) AddFeedEntry(ctx context.Context, username *string, feedURL string, entryList []*greader_api.Entry) error
func (*MySQLBackend) AddSubscription ¶
func (r *MySQLBackend) AddSubscription(ctx context.Context, username, feedURL, homeURL, title string) (*greader_api.Subscription, error)
func (*MySQLBackend) DeleteSubscription ¶
func (r *MySQLBackend) DeleteSubscription(ctx context.Context, username, feedID string) error
func (*MySQLBackend) DeleteTag ¶
func (r *MySQLBackend) DeleteTag(ctx context.Context, username, name string) error
func (*MySQLBackend) ListEntryIDs ¶
func (*MySQLBackend) ListFeedURL ¶
func (r *MySQLBackend) ListFeedURL(ctx context.Context) ([]string, error)
func (*MySQLBackend) ListSubscription ¶
func (r *MySQLBackend) ListSubscription(ctx context.Context, username string) ([]*greader_api.Subscription, error)
func (*MySQLBackend) LoadEntry ¶
func (r *MySQLBackend) LoadEntry(ctx context.Context, username string, entryIDs []string) ([]*greader_api.Entry, error)
func (*MySQLBackend) Register ¶
func (r *MySQLBackend) Register(ctx context.Context, username, password string) error
func (*MySQLBackend) RenameTag ¶
func (r *MySQLBackend) RenameTag(ctx context.Context, username, oldName, newName string) error
func (*MySQLBackend) UpdateEntry ¶
func (*MySQLBackend) UpdateSubscriptionTag ¶
func (*MySQLBackend) UpdateSubscriptionTitle ¶
func (r *MySQLBackend) UpdateSubscriptionTitle(ctx context.Context, username, feedID, title string) error
Click to show internal directories.
Click to hide internal directories.