mysql_backend

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 (r *MySQLBackend) ListEntryIDs(ctx context.Context, username string, readed, starred *bool, feedID *string, since time.Time, count int64, continuation string) (string, []int64, error)

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) ListTag

func (r *MySQLBackend) ListTag(ctx context.Context, username string) ([]string, error)

func (*MySQLBackend) LoadEntry

func (r *MySQLBackend) LoadEntry(ctx context.Context, username string, entryIDs []string) ([]*greader_api.Entry, error)

func (*MySQLBackend) Login

func (r *MySQLBackend) Login(ctx context.Context, username, password string) (string, 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 (r *MySQLBackend) UpdateEntry(ctx context.Context, username string, entryIDs []string, read, starred *bool) error

func (*MySQLBackend) UpdateSubscriptionTag

func (r *MySQLBackend) UpdateSubscriptionTag(ctx context.Context, username, feedID string, addTag, removeTag string) error

func (*MySQLBackend) UpdateSubscriptionTitle

func (r *MySQLBackend) UpdateSubscriptionTitle(ctx context.Context, username, feedID, title string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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