Documentation ¶
Index ¶
- Variables
- type Store
- func (s *Store) Close() error
- func (s *Store) Dequeue() (*ffs.RetrievalJob, error)
- func (s *Store) Enqueue(j ffs.RetrievalJob) error
- func (s *Store) Finalize(jid ffs.JobID, st ffs.JobStatus, jobError error) error
- func (s *Store) Get(jid ffs.JobID) (ffs.RetrievalJob, error)
- func (s *Store) Watch(ctx context.Context, c chan<- ffs.RetrievalJob, iid ffs.APIID) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound indicates the job doesn't exists. ErrNotFound = errors.New("retrieval job not found") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a persistent store for retrieval jobs.
func (*Store) Dequeue ¶
func (s *Store) Dequeue() (*ffs.RetrievalJob, error)
Dequeue dequeues a ready to be executed retrieval job.
func (*Store) Enqueue ¶
func (s *Store) Enqueue(j ffs.RetrievalJob) error
Enqueue queues a new retrieval job.
Click to show internal directories.
Click to hide internal directories.