Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultFeedName = "default"
DefaultFeedName is the default name of a feed where entries are stored
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AddingService ¶
type DeletingService ¶
type FeedEntryStorage ¶
type FeedEntryStorage interface {
Add(entry *FeedEntry) error
Delete(id int) error
AllByLoginAndFeedName(login string, feedName string) ([]*FeedEntry, error)
ExistsEntry(id int) (bool, error)
EntryBelongsToLogin(id int, login string) (bool, error)
}
FeedEntryStorage manages persistence of feed entries
type FeedStorage ¶
type FeedStorage interface {
Add(feed *Feed) error
Get(id int) (*Feed, error)
Exists(login, name string) (bool, error)
GetByNameAndLogin(login, name string) (*Feed, error)
Delete(id int) error
GetFeedsByLogin(login string) ([]*Feed, error)
}
FeedStorage manages persistence of a RSS feed
type UserStorage ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
rssfeeder
command
|
|
|
rssfeederd
command
|
|
|
pkg
|
|
|
rest
this package contains structs for client and server communication
|
this package contains structs for client and server communication |
|
server/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.