Documentation ¶
Index ¶
- type FileStorage
- func (f *FileStorage) GetBook(book *models.Book) error
- func (f *FileStorage) GetBookDir(book *models.Book) (string, error)
- func (f *FileStorage) GetBookInfoFile(book *models.Book) (string, error)
- func (f *FileStorage) GetChapter(book *models.Book, chapter *models.Chapter) error
- func (f *FileStorage) GetChapterFile(book *models.Book, chapter *models.Chapter) string
- func (f *FileStorage) SaveBook(book *models.Book) error
- func (f *FileStorage) SaveChapter(book *models.Book, chapter *models.Chapter) error
- type MobiStorage
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage struct {
BasePath string
}
func (*FileStorage) GetBookDir ¶
func (f *FileStorage) GetBookDir(book *models.Book) (string, error)
func (*FileStorage) GetBookInfoFile ¶
func (f *FileStorage) GetBookInfoFile(book *models.Book) (string, error)
func (*FileStorage) GetChapter ¶
func (*FileStorage) GetChapterFile ¶
func (*FileStorage) SaveChapter ¶
type MobiStorage ¶
func (*MobiStorage) GetBookFile ¶
func (m *MobiStorage) GetBookFile(book *models.Book) (string, error)
func (*MobiStorage) SaveChapter ¶
Click to show internal directories.
Click to hide internal directories.