Documentation
¶
Index ¶
- type Calibre
- func (c *Calibre) FindPaths(ctx context.Context) error
- func (c *Calibre) GetBooks(ctx context.Context) ([]model.CalibreBook, error)
- func (c *Calibre) Run(ctx context.Context, command string, args ...string) (string, error)
- func (c *Calibre) UpdateBook(ctx context.Context, id int, meta UpdateMeta, bookPath string) error
- type UpdateMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calibre ¶
type Calibre struct {
Library string // Path to the Calibre library
Settings string // Path to the settings directory
// RunShim is used to mock running actual executables. This should not be
// used normally.
RunShim func(cmd *exec.Cmd) ([]byte, error)
}
func (*Calibre) FindPaths ¶
FindPaths attempts to auto-detect the Settings path and the Library path, if either were not specified.
func (*Calibre) UpdateBook ¶
Click to show internal directories.
Click to hide internal directories.