persistence

package
v0.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const METADATA_CF string = "METADATA_"
View Source
const WF_PREFIX string = "WF_"

Variables

This section is empty.

Functions

This section is empty.

Types

type DelayQueue

type DelayQueue interface {
	Push(queueName string, mesage []byte) error
	Pop(queueName string) ([]string, error)
	PushWithDelay(queueName string, delay time.Duration, message []byte) error
}

type FlowDao

type FlowDao interface {
	SaveFlowContext(wfName string, flowId string, flowCtx *model.FlowContext) error
	CreateAndSaveFlowContext(wFname string, flowId string, action int, dataMap map[string]any) (*model.FlowContext, error)
	AddActionOutputToFlowContext(wFname string, flowId string, action int, dataMap map[string]any) (*model.FlowContext, error)
	GetFlowContext(wfName string, flowId string) (*model.FlowContext, error)
	DeleteFlowContext(wfName string, flowId string) error
}

type Partition

type Partition interface {
	GetFlowDao() FlowDao
	GetQueue() Queue
	GetDelayQueue() DelayQueue
}

type Partitions

type Partitions struct {
	Partitions map[int]Partition
	// contains filtered or unexported fields
}

func (*Partitions) GetPartition

func (p *Partitions) GetPartition(partId int) Partition

type Queue

type Queue interface {
	Push(queueName string, mesage []byte) error
	Pop(queuName string, batchSize int) ([]string, error)
}

type StorageLayerError

type StorageLayerError struct {
	Message string
}

func (StorageLayerError) Error

func (e StorageLayerError) Error() string

type TaskDao

type TaskDao interface {
	SaveTask(task model.TaskDef) error
	DeleteTask(task string) error
	GetTask(task string) (*model.TaskDef, error)
}

type WorkflowDao

type WorkflowDao interface {
	Save(wf model.Workflow) error

	Delete(name string) error

	Get(name string) (*model.Workflow, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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