datastore

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStorer

type DataStorer interface {
	AddJob(ctx context.Context, importJob *models.Job) (*models.Job, error)
	GetJob(ctx context.Context, jobID string) (*models.Job, error)
	GetJobs(ctx context.Context, filters []string, offset int, limit int) (*models.JobResults, error)
	UpdateJob(ctx context.Context, jobID string, update *models.Job) error
	UpdateProcessedInstance(ctx context.Context, id string, procInstances []models.ProcessedInstances) error
	AddUploadedFile(ctx context.Context, jobID string, message *models.UploadedFile) error
	Close(context.Context) error
	Checker(context.Context, *healthcheck.CheckState) error
	AcquireInstanceLock(ctx context.Context, jobID string) (lockID string, err error)
	UnlockInstance(ctx context.Context, lockID string)
}

DataStorer is an interface used to store import jobs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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