datastore

package
v0.0.0-...-ed2b81c Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, projectName string) (*DB, error)

func (*DB) Close

func (d *DB) Close() error

func (*DB) DequeueJob

func (d *DB) DequeueJob(ctx context.Context, workerName string) (*db.QueryJob, error)

func (*DB) EnqueueJob

func (d *DB) EnqueueJob(ctx context.Context, job *db.QueryJob) error

func (*DB) FinishJob

func (d *DB) FinishJob(ctx context.Context, id string, status string, result string) error

func (*DB) GetJob

func (d *DB) GetJob(ctx context.Context, id string) (*db.QueryJob, error)

Jump to

Keyboard shortcuts

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