operation

package
v0.0.0-...-ee95d54 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationsKey        = "operations"
	DeletedOperationsKey = "deleted_operations"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseOperationRepo

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

func NewOperationRepo

func NewOperationRepo(s state.State, topic string) (*BaseOperationRepo, error)

func (*BaseOperationRepo) DeleteOperation

func (r *BaseOperationRepo) DeleteOperation(operation *types.Operation) error

DeleteOperation deletes operation from an operation pool

func (*BaseOperationRepo) GetOperationByID

func (r *BaseOperationRepo) GetOperationByID(operationID string) (*types.Operation, error)

func (*BaseOperationRepo) GetOperations

func (r *BaseOperationRepo) GetOperations() (map[string]*types.Operation, error)

GetOperations returns all operations from an operation pool

func (*BaseOperationRepo) PutOperation

func (r *BaseOperationRepo) PutOperation(operation *types.Operation) error

type OperationRepo

type OperationRepo interface {
	PutOperation(operation *types.Operation) error
	DeleteOperation(operation *types.Operation) error
	GetOperations() (map[string]*types.Operation, error)
	GetOperationByID(operationID string) (*types.Operation, error)
}

Jump to

Keyboard shortcuts

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