store

package
v0.0.0-...-32d6f47 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWorkflowNotFound      = errors.New("Workflow not found")
	ErrWorkflowMissingName   = errors.New("Workflow missing name")
	ErrWorkflowAlreadyExists = errors.New("Workflow already exists")
)

Error messages

Functions

This section is empty.

Types

type DataStore

type DataStore interface {
	Ping(ctx context.Context) error
	InsertWorkflows(ctx context.Context, workflow ...model.Workflow) (int, error)
	GetWorkflowByName(
		ctx context.Context,
		workflowName string,
		version string,
	) (*model.Workflow, error)
	GetWorkflows(ctx context.Context) []model.Workflow
	LoadWorkflows(ctx context.Context, l *log.Logger) error
	UpsertJob(ctx context.Context, job *model.Job) (*model.Job, error)
	GetAllJobs(ctx context.Context, page int64, perPage int64) ([]model.Job, int64, error)
	UpdateJobAddResult(ctx context.Context, job *model.Job, result *model.TaskResult) error
	UpdateJobStatus(ctx context.Context, job *model.Job, status int32) error
	GetJobByNameAndID(ctx context.Context, name string, ID string) (*model.Job, error)
	GetJobByID(ctx context.Context, ID string) (*model.Job, error)
}

DataStore interface for DataStore services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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