mongo

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreatedJob models.Job = models.Job{ID: "34534543543"}

CreatedJob represents a job returned by AddJob

View Source
var InternalError = errors.New("DataStore internal error")

Functions

This section is empty.

Types

type DataStorer

type DataStorer struct {
	NotFound      bool
	InternalError bool
}

func (*DataStorer) AddInstance

func (ds *DataStorer) AddInstance(jobID string) (string, error)

func (*DataStorer) AddJob

func (ds *DataStorer) AddJob(importJob *models.Job) (*models.Job, error)

func (*DataStorer) AddUploadedFile

func (ds *DataStorer) AddUploadedFile(jobID string, message *models.UploadedFile) error

func (*DataStorer) Checker added in v1.9.0

func (m *DataStorer) Checker(ctx context.Context, state *healthcheck.CheckState) error

func (*DataStorer) Close added in v1.9.0

func (m *DataStorer) Close(ctx context.Context) error

func (*DataStorer) GetJob

func (ds *DataStorer) GetJob(jobID string) (*models.Job, error)

func (*DataStorer) GetJobs

func (ds *DataStorer) GetJobs(ctx context.Context, filter []string, offset int, limit int) (*models.JobResults, error)

func (*DataStorer) UpdateJob

func (ds *DataStorer) UpdateJob(string, *models.Job) error

func (*DataStorer) UpdateJobState

func (ds *DataStorer) UpdateJobState(string, string) error

Jump to

Keyboard shortcuts

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