Documentation ¶
Index ¶
- func NewDocstoreDatabase(ctx context.Context, uri string) (offline.Database, error)
- func NewPubSubQueue(ctx context.Context, uri string) (offline.Queue, error)
- type DocstoreDatabase
- func (db *DocstoreDatabase) AddJob(ctx context.Context, job *offline.Job) error
- func (db *DocstoreDatabase) Close(ctx context.Context) error
- func (db *DocstoreDatabase) GetJob(ctx context.Context, id int64) (*offline.Job, error)
- func (db *DocstoreDatabase) ListJobs(ctx context.Context, cb offline.ListJobsCallback) error
- func (db *DocstoreDatabase) PruneJobs(ctx context.Context, status offline.Status, lastmodified int64) error
- func (db *DocstoreDatabase) RemoveJob(ctx context.Context, job *offline.Job) error
- func (db *DocstoreDatabase) UpdateJob(ctx context.Context, job *offline.Job) error
- type PubSubQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDocstoreDatabase ¶
Types ¶
type DocstoreDatabase ¶
type DocstoreDatabase struct { offline.Database // contains filtered or unexported fields }
func (*DocstoreDatabase) AddJob ¶
func (db *DocstoreDatabase) AddJob(ctx context.Context, job *offline.Job) error
func (*DocstoreDatabase) Close ¶ added in v0.0.7
func (db *DocstoreDatabase) Close(ctx context.Context) error
func (*DocstoreDatabase) GetJob ¶
func (db *DocstoreDatabase) GetJob(ctx context.Context, id int64) (*offline.Job, error)
func (*DocstoreDatabase) ListJobs ¶
func (db *DocstoreDatabase) ListJobs(ctx context.Context, cb offline.ListJobsCallback) error
func (*DocstoreDatabase) PruneJobs ¶
func (db *DocstoreDatabase) PruneJobs(ctx context.Context, status offline.Status, lastmodified int64) error
type PubSubQueue ¶
type PubSubQueue struct { offline.Queue // contains filtered or unexported fields }
func (*PubSubQueue) ScheduleJob ¶
func (q *PubSubQueue) ScheduleJob(ctx context.Context, job_id int64) error
Click to show internal directories.
Click to hide internal directories.