dags

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelDag

type ChannelDag struct {
	DagInstanceName string
	// contains filtered or unexported fields
}

func (*ChannelDag) Push

func (dag *ChannelDag) Push(taskName string, data interface{}, resultChan chan map[string]interface{}) chan map[string]interface{}

func (*ChannelDag) Run

func (dag *ChannelDag) Run() *sync.WaitGroup

Run implements DAG.

func (*ChannelDag) Stop

func (dag *ChannelDag) Stop()

type DAG

type DAG interface {
	Run() *sync.WaitGroup
	Push(workflowInstanceName string, data interface{}, resultChan chan map[string]interface{}) chan map[string]interface{}
	Stop()
}

func InitChannelDag

func InitChannelDag(dagGrpah [][]string, assetsMap map[string]processing.Asset, config *configs.Config, name string) DAG

type DagRoutine

type DagRoutine struct {
	Name string

	Asset          processing.Asset
	InputChannels  map[string]chan *TransitionTask
	OutPutChannels map[string]chan *TransitionTask
	// contains filtered or unexported fields
}

type TransitionTask

type TransitionTask struct {
	TaskName     string
	Data         interface{}
	StopSignal   bool
	IngoreSignal bool
}

Jump to

Keyboard shortcuts

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