Documentation ¶
Index ¶
- func New() (bushido.LocalStorage, error)
- type StorageSqlite
- func (s *StorageSqlite) Add(content bushido.Content) error
- func (s *StorageSqlite) AppendChapter(content bushido.Content, chapters []bushido.Chapter) error
- func (s *StorageSqlite) AppendPages(chapter bushido.Chapter, pages []bushido.Page) error
- func (s *StorageSqlite) CreateTables() error
- func (s *StorageSqlite) FindById(id int) (*bushido.Content, error)
- func (s *StorageSqlite) FindByLink(link string) (*bushido.Content, error)
- func (s *StorageSqlite) FindChapterById(id int) (*bushido.Chapter, error)
- func (s *StorageSqlite) ListByName(name string) ([]bushido.Content, error)
- func (s *StorageSqlite) ListChaptersByContentId(contentId int) ([]bushido.Chapter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() (bushido.LocalStorage, error)
Types ¶
type StorageSqlite ¶
type StorageSqlite struct {
// contains filtered or unexported fields
}
func (*StorageSqlite) AppendChapter ¶
func (*StorageSqlite) AppendPages ¶
func (*StorageSqlite) CreateTables ¶
func (s *StorageSqlite) CreateTables() error
func (*StorageSqlite) FindByLink ¶
func (s *StorageSqlite) FindByLink(link string) (*bushido.Content, error)
func (*StorageSqlite) FindChapterById ¶
func (s *StorageSqlite) FindChapterById(id int) (*bushido.Chapter, error)
func (*StorageSqlite) ListByName ¶
func (s *StorageSqlite) ListByName(name string) ([]bushido.Content, error)
func (*StorageSqlite) ListChaptersByContentId ¶
func (s *StorageSqlite) ListChaptersByContentId(contentId int) ([]bushido.Chapter, error)
Click to show internal directories.
Click to hide internal directories.