gocloud

package module
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

README

go-offline-gocloud

Go package implementing the sfomuseum/go-offline interfaces using the Go Cloud abstraction libraries.

Work in progress.

Documentation

Documentation is incomplete at this time.

See also

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDocstoreDatabase

func NewDocstoreDatabase(ctx context.Context, uri string) (offline.Database, error)

func NewPubSubQueue

func NewPubSubQueue(ctx context.Context, uri string) (offline.Queue, error)

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

func (*DocstoreDatabase) RemoveJob

func (db *DocstoreDatabase) RemoveJob(ctx context.Context, job *offline.Job) error

func (*DocstoreDatabase) UpdateJob

func (db *DocstoreDatabase) UpdateJob(ctx context.Context, job *offline.Job) error

type PubSubQueue

type PubSubQueue struct {
	offline.Queue
	// contains filtered or unexported fields
}

func (*PubSubQueue) Close

func (q *PubSubQueue) Close(ctx context.Context) error

func (*PubSubQueue) ScheduleJob

func (q *PubSubQueue) ScheduleJob(ctx context.Context, job_id int64) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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