repository

package
v0.0.0-...-0004f69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrQueueNotFound     = errors.New("queue Not found")
	ErrQueueAlreadyExist = errors.New("queue Already Exist")
	ErrEntryNotFound     = errors.New("entry Not found")
)

Functions

func NewSQLite3Repo

func NewSQLite3Repo(dbfile, directory string) (*dbRepo, error)

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) Complete

func (repo *InMemoryRepo) Complete(e fafnir.Entry) error

func (*InMemoryRepo) Create

func (repo *InMemoryRepo) Create(queueName string) error

func (*InMemoryRepo) Delete

func (repo *InMemoryRepo) Delete(queueName string) error

func (*InMemoryRepo) Fetch

func (repo *InMemoryRepo) Fetch() ([]*fafnir.Queue, error)

func (*InMemoryRepo) Get

func (repo *InMemoryRepo) Get(queueName string, errChan chan error) (*fafnir.Queue, error)

func (*InMemoryRepo) Update

func (repo *InMemoryRepo) Update(e fafnir.Entry) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL