More fixes

This commit is contained in:
James Mills
2021-01-30 15:26:24 +10:00
parent 401f635b3b
commit 8495ba0319
8 changed files with 15 additions and 304 deletions

View File

@@ -11,7 +11,6 @@ var (
ErrInvalidStore = errors.New("error: invalid store")
ErrUserNotFound = errors.New("error: user not found")
ErrTokenNotFound = errors.New("error: token not found")
ErrFeedNotFound = errors.New("error: feed not found")
ErrInvalidSession = errors.New("error: invalid session")
)
@@ -20,14 +19,6 @@ type Store interface {
Close() error
Sync() error
DelFeed(name string) error
HasFeed(name string) bool
GetFeed(name string) (*Feed, error)
SetFeed(name string, user *Feed) error
LenFeeds() int64
SearchFeeds(prefix string) []string
GetAllFeeds() ([]*Feed, error)
DelUser(username string) error
HasUser(username string) bool
GetUser(username string) (*User, error)