Documentation
¶
Index ¶
- type Book
- func (b *Book) AddEpub(path string, isRetail bool, hash string) (bool, error)
- func (b *Book) Check() (bool, bool, error)
- func (b *Book) CleanFilename() string
- func (b *Book) FullPath() string
- func (b *Book) HasEpub() bool
- func (b *Book) HasHash(a string) bool
- func (b *Book) ID() int
- func (b *Book) Refresh() ([]bool, []string, error)
- func (b *Book) SetExported(bool)
- func (b *Book) String() string
- type Collection
- func (c *Collection) Add(books ...endive.GenericBook)
- func (c *Collection) Authors() map[string]int
- func (c *Collection) Books() []endive.GenericBook
- func (c *Collection) Diff(endive.Collection, endive.Collection, endive.Collection, endive.Collection)
- func (c *Collection) Exported() endive.Collection
- func (c *Collection) FindByFullPath(string) (endive.GenericBook, error)
- func (c *Collection) FindByHash(string) (endive.GenericBook, error)
- func (c *Collection) FindByID(id int) (endive.GenericBook, error)
- func (c *Collection) FindByMetadata(a, b, d string) (endive.GenericBook, error)
- func (c *Collection) First(nb int) endive.Collection
- func (c *Collection) Incomplete() endive.Collection
- func (c *Collection) Last(nb int) endive.Collection
- func (c *Collection) NonRetailOnly() endive.Collection
- func (c *Collection) Progress(p string) endive.Collection
- func (c *Collection) Propagate(u i.UserInterface, cfg endive.Config)
- func (c *Collection) Publishers() map[string]int
- func (c *Collection) RemoveByID(u int) error
- func (c *Collection) Retail() endive.Collection
- func (c *Collection) Series() map[string]int
- func (c *Collection) Sort(sortBy string)
- func (c *Collection) Table() string
- func (c *Collection) Tags() map[string]int
- func (c *Collection) WithID() endive.Collection
- type DB
- type IndexService
- func (s *IndexService) Check(all endive.Collection) error
- func (s *IndexService) Count() uint64
- func (s *IndexService) Query(query string) ([]string, error)
- func (s *IndexService) Rebuild(all endive.Collection) error
- func (s *IndexService) SetPath(path string)
- func (s *IndexService) Update(new endive.Collection, mod endive.Collection, del endive.Collection) error
- type UserInterface
- func (u *UserInterface) Accept(a string) bool
- func (u *UserInterface) Choice(a string, b ...interface{})
- func (u *UserInterface) CloseLog()
- func (u *UserInterface) Debug(a string)
- func (u *UserInterface) Debugf(a string, b ...interface{})
- func (u *UserInterface) Display(a string)
- func (u *UserInterface) Edit(a string) (string, error)
- func (u *UserInterface) Error(a string)
- func (u *UserInterface) Errorf(a string, b ...interface{})
- func (u *UserInterface) GetInput() (string, error)
- func (u *UserInterface) Info(a string)
- func (u *UserInterface) Infof(a string, b ...interface{})
- func (u *UserInterface) InitLogger(a string) error
- func (u *UserInterface) SelectOption(a, b string, c []string, isLong bool) (string, error)
- func (u *UserInterface) SubPart(a string, b ...interface{})
- func (u *UserInterface) SubTitle(a string, b ...interface{})
- func (u *UserInterface) Tag(a string, b bool) string
- func (u *UserInterface) Title(a string, b ...interface{})
- func (u *UserInterface) UpdateValue(a, b, c string, isLong bool) (string, error)
- func (u *UserInterface) Warning(a string)
- func (u *UserInterface) Warningf(a string, b ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { }
Book represents a mock implementation of endive.GenericBook.
func (*Book) CleanFilename ¶
CleanFilename implementation for tests
type Collection ¶
type Collection struct { }
Collection represents a mock implementation of endive.Collection.
func (*Collection) Add ¶
func (c *Collection) Add(books ...endive.GenericBook)
Add implementation for tests
func (*Collection) Authors ¶
func (c *Collection) Authors() map[string]int
Authors implementation for tests
func (*Collection) Books ¶
func (c *Collection) Books() []endive.GenericBook
Books implementation for tests
func (*Collection) Diff ¶
func (c *Collection) Diff(endive.Collection, endive.Collection, endive.Collection, endive.Collection)
Diff implementation for tests
func (*Collection) Exported ¶
func (c *Collection) Exported() endive.Collection
Exported implementation for tests
func (*Collection) FindByFullPath ¶
func (c *Collection) FindByFullPath(string) (endive.GenericBook, error)
FindByFullPath implementation for tests
func (*Collection) FindByHash ¶
func (c *Collection) FindByHash(string) (endive.GenericBook, error)
FindByHash implementation for tests
func (*Collection) FindByID ¶
func (c *Collection) FindByID(id int) (endive.GenericBook, error)
FindByID implementation for tests
func (*Collection) FindByMetadata ¶
func (c *Collection) FindByMetadata(a, b, d string) (endive.GenericBook, error)
FindByMetadata implementation for tests
func (*Collection) First ¶
func (c *Collection) First(nb int) endive.Collection
First implementation for tests
func (*Collection) Incomplete ¶
func (c *Collection) Incomplete() endive.Collection
Incomplete implementation for tests
func (*Collection) Last ¶
func (c *Collection) Last(nb int) endive.Collection
Last implementation for tests
func (*Collection) NonRetailOnly ¶
func (c *Collection) NonRetailOnly() endive.Collection
NonRetailOnly implementation for tests
func (*Collection) Progress ¶
func (c *Collection) Progress(p string) endive.Collection
Progress implementation for tests
func (*Collection) Propagate ¶
func (c *Collection) Propagate(u i.UserInterface, cfg endive.Config)
Propagate implementation for tests
func (*Collection) Publishers ¶
func (c *Collection) Publishers() map[string]int
Publishers implementation for tests
func (*Collection) RemoveByID ¶
func (c *Collection) RemoveByID(u int) error
RemoveByID implementation for tests
func (*Collection) Retail ¶
func (c *Collection) Retail() endive.Collection
Retail implementation for tests
func (*Collection) Series ¶
func (c *Collection) Series() map[string]int
Series implementation for tests
func (*Collection) WithID ¶
func (c *Collection) WithID() endive.Collection
WithID implementation for tests
type IndexService ¶
type IndexService struct { }
IndexService represents a mock implementation of endive.Indexer.
func (*IndexService) Check ¶
func (s *IndexService) Check(all endive.Collection) error
Check for mock Indexer
func (*IndexService) Query ¶
func (s *IndexService) Query(query string) ([]string, error)
Query for mock Indexer
func (*IndexService) Rebuild ¶
func (s *IndexService) Rebuild(all endive.Collection) error
Rebuild for mock Indexer
func (*IndexService) Update ¶
func (s *IndexService) Update(new endive.Collection, mod endive.Collection, del endive.Collection) error
Update for mock Indexer
type UserInterface ¶
type UserInterface struct {
UpdateValuesResult string
}
UserInterface represents a mock implementation of endive.UserInterface.
func (*UserInterface) Accept ¶
func (u *UserInterface) Accept(a string) bool
Accept for mock UserInterface
func (*UserInterface) Choice ¶
func (u *UserInterface) Choice(a string, b ...interface{})
Choice for mock UserInterface
func (*UserInterface) Debugf ¶
func (u *UserInterface) Debugf(a string, b ...interface{})
Debugf for mock UserInterface
func (*UserInterface) Display ¶
func (u *UserInterface) Display(a string)
Display for mock UserInterface
func (*UserInterface) Edit ¶
func (u *UserInterface) Edit(a string) (string, error)
Edit for mock UserInterface
func (*UserInterface) Errorf ¶
func (u *UserInterface) Errorf(a string, b ...interface{})
Errorf for mock UserInterface
func (*UserInterface) GetInput ¶
func (u *UserInterface) GetInput() (string, error)
GetInput for mock UserInterface
func (*UserInterface) Infof ¶
func (u *UserInterface) Infof(a string, b ...interface{})
Infof for mock UserInterface
func (*UserInterface) InitLogger ¶
func (u *UserInterface) InitLogger(a string) error
InitLogger for mock UserInterface
func (*UserInterface) SelectOption ¶
SelectOption for mock UserInterface
func (*UserInterface) SubPart ¶
func (u *UserInterface) SubPart(a string, b ...interface{})
SubPart for mock UserInterface
func (*UserInterface) SubTitle ¶
func (u *UserInterface) SubTitle(a string, b ...interface{})
SubTitle for mock UserInterface
func (*UserInterface) Tag ¶
func (u *UserInterface) Tag(a string, b bool) string
Tag for mock UserInterface
func (*UserInterface) Title ¶
func (u *UserInterface) Title(a string, b ...interface{})
Title for mock UserInterface
func (*UserInterface) UpdateValue ¶
func (u *UserInterface) UpdateValue(a, b, c string, isLong bool) (string, error)
UpdateValue for mock UserInterface
func (*UserInterface) Warning ¶
func (u *UserInterface) Warning(a string)
Warning for mock UserInterface
func (*UserInterface) Warningf ¶
func (u *UserInterface) Warningf(a string, b ...interface{})
Warningf for mock UserInterface