exgraph

package module
v0.0.0-...-6b9f9a2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

exgraph

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Context() context.Context
}

type Executor

type Executor interface {
	Exec(ctx context.Context, dag Graph) error
}

func NewExecutor

func NewExecutor() Executor

type Graph

type Graph interface {
	Pipeline(tasks ...Task) *pipelineDSL
	Spawns(tasks ...Task) *spawnsDSL
	Exec(ctx context.Context) error
	Task
}

Graph represents directed acyclic graph

func NewGraph

func NewGraph() Graph

New creates new Graph

type Job

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

Job - Each job consists of one or more tasks Each Job can runs tasks in order(Sequential) or unordered

type Task

type Task interface {
	Run(Context) error
}

type TaskFunc

type TaskFunc func(Context) error

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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