mongo

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) GetJob

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

func (*DataStorer) GetJobs

func (ds *DataStorer) GetJobs(filter []string) ([]models.Job, 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