Documentation ¶
Index ¶
- Variables
- func NewSQLite3Repo(dbfile, directory string) (*dbRepo, error)
- type InMemoryRepo
- func (repo *InMemoryRepo) Add(queueName, link, dwnDir, filename, description string) error
- func (repo *InMemoryRepo) Complete(e fafnir.Entry) error
- func (repo *InMemoryRepo) Create(queueName string) error
- func (repo *InMemoryRepo) Delete(queueName string) error
- func (repo *InMemoryRepo) Fetch() ([]*fafnir.Queue, error)
- func (repo *InMemoryRepo) Get(queueName string, errChan chan error) (*fafnir.Queue, error)
- func (repo *InMemoryRepo) Update(e fafnir.Entry) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewSQLite3Repo ¶
Types ¶
type InMemoryRepo ¶
type InMemoryRepo struct { Queues []*fafnir.Queue Entries []fafnir.Entry EID int // contains filtered or unexported fields }
func NewInMemory ¶
func NewInMemory() *InMemoryRepo
func (*InMemoryRepo) Add ¶
func (repo *InMemoryRepo) Add(queueName, link, dwnDir, filename, description string) error
func (*InMemoryRepo) Create ¶
func (repo *InMemoryRepo) Create(queueName string) error
func (*InMemoryRepo) Delete ¶
func (repo *InMemoryRepo) Delete(queueName string) error
Click to show internal directories.
Click to hide internal directories.