Documentation ¶
Index ¶
- Variables
- func TableExists(db *sql.DB, table string) bool
- type Channel
- type Item
- type ItemStatus
- type Storage
- func (s *Storage) CreateChannel(name string) *Channel
- func (s *Storage) CreateItems(items []Item) bool
- func (s *Storage) DeleteChannel(feedId int64) bool
- func (s *Storage) GetChannel(id int64) *Channel
- func (s *Storage) GetItem(id int64) *Item
- func (s *Storage) ListChannels() []Channel
- func (s *Storage) ListItems() []Item
- func (s *Storage) MarkItemAsRead(id int64) bool
- func (s *Storage) RenameChannel(feedId int64, newTitle string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var StatusRepresentations = map[ItemStatus]string{ UNREAD: "unread", READ: "read", STARRED: "starred", }
View Source
var StatusValues = map[string]ItemStatus{ "unread": UNREAD, "read": READ, "starred": STARRED, }
Functions ¶
Types ¶
type ItemStatus ¶
type ItemStatus int
const ( UNREAD ItemStatus = 0 READ ItemStatus = 1 STARRED ItemStatus = 2 )
func (ItemStatus) MarshalJSON ¶
func (s ItemStatus) MarshalJSON() ([]byte, error)
func (*ItemStatus) UnmarshalJSON ¶
func (s *ItemStatus) UnmarshalJSON(b []byte) error
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CreateChannel ¶
func (*Storage) CreateItems ¶
func (*Storage) DeleteChannel ¶
func (*Storage) GetChannel ¶
func (*Storage) ListChannels ¶
func (*Storage) MarkItemAsRead ¶
Click to show internal directories.
Click to hide internal directories.