sqlite

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sqlite

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

func New

func New(ctx context.Context, dbPath string) (*Sqlite, error)

func (*Sqlite) Close

func (s *Sqlite) Close() error

func (*Sqlite) DequeueJob

func (s *Sqlite) DequeueJob(ctx context.Context, workerName string) (*db.QueryJob, error)

func (*Sqlite) EnqueueJob

func (s *Sqlite) EnqueueJob(ctx context.Context, job *db.QueryJob) (retErr error)

func (*Sqlite) FinishJob

func (s *Sqlite) FinishJob(ctx context.Context, id string, status string, result string) error

func (*Sqlite) GetJob

func (s *Sqlite) 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