Documentation ¶
Index ¶
- func NewDelayQueue(parts *persistence.Partitions, ring *Ring) *clusterDelayQueue
- func NewFlowDao(parts *persistence.Partitions, ring *Ring) *clusterFlowDao
- func NewHasher() *hasher
- func NewQueue(parts *persistence.Partitions, ring *Ring) *clusterQueue
- func ValidateStateHandler(st string) error
- type Config
- type DelayQueue
- type FlowDao
- type Handler
- type Membership
- type Node
- type Queue
- type Ring
- type RingConfig
- type StateHandlerContainer
- type Statehandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDelayQueue ¶
func NewDelayQueue(parts *persistence.Partitions, ring *Ring) *clusterDelayQueue
func NewFlowDao ¶
func NewFlowDao(parts *persistence.Partitions, ring *Ring) *clusterFlowDao
func NewQueue ¶
func NewQueue(parts *persistence.Partitions, ring *Ring) *clusterQueue
func ValidateStateHandler ¶
Types ¶
type DelayQueue ¶
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 Membership ¶
type Membership struct { Config // contains filtered or unexported fields }
func (*Membership) Leave ¶
func (m *Membership) Leave() error
func (*Membership) Members ¶
func (m *Membership) Members() []serf.Member
func (*Membership) RefreshCluster ¶
func (m *Membership) RefreshCluster()
type Ring ¶
type Ring struct { RingConfig // contains filtered or unexported fields }
func NewRing ¶
func NewRing(c RingConfig) *Ring
func (*Ring) GetPartition ¶
func (*Ring) GetPartitions ¶
func (*Ring) RefreshCluster ¶
func (r *Ring) RefreshCluster()
type RingConfig ¶
type RingConfig struct {
PartitionCount int
}
type StateHandlerContainer ¶
type StateHandlerContainer struct {
// contains filtered or unexported fields
}
func NewStateHandlerContainer ¶
func NewStateHandlerContainer(flowDao FlowDao) *StateHandlerContainer
func (*StateHandlerContainer) GetHandler ¶
func (s *StateHandlerContainer) GetHandler(st Statehandler) func(wfName string, wfId string) error
func (*StateHandlerContainer) Init ¶
func (s *StateHandlerContainer) Init()
type Statehandler ¶
type Statehandler string
const DELETE Statehandler = "DELETE"
const NOOP Statehandler = "NOOP"
Click to show internal directories.
Click to hide internal directories.