nodes

package
v0.0.0-...-73d1187 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	Run(ctx WorkflowContext, input any) (any, error)
}

type Workflow

type Workflow []Node

func NewWorkflow

func NewWorkflow(nodes ...Node) Workflow

func (Workflow) Run

func (w Workflow) Run(ctx WorkflowContext, input any) (any, error)

type WorkflowContext

type WorkflowContext struct {
	ResponseWriter http.ResponseWriter
	Request        *http.Request
	Params         httprouter.Params
}

func NewWorkflowContext

func NewWorkflowContext(w http.ResponseWriter, req *http.Request, params httprouter.Params) WorkflowContext

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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