Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidClientReq is returned when the client request could not be made ErrInvalidClientReq errInvalidClientReq // ErrSendClientReq is returned when failing to send the client request ErrSendClientReq errSendClientReq // ErrInvalidServerRes is returned on an invalid server response ErrInvalidServerRes errInvalidServerRes // ErrServerRes is a returned server error ErrServerRes errServerRes )
View Source
var ErrImportCycle errImportCycle
ErrImportCycle is returned when module dependencies form a cycle
View Source
var ErrNoRuntimeLoad errNoRuntimeLoad
ErrNoRuntimeLoad is returned when attempting to load modules not ata the top level
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder []Opt
func (Builder) Build ¶
func (b Builder) Build(fsys fs.FS) (workflowengine.WorkflowEngine, error)
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is a starlark workflow engine
type NativeFunc ¶
type NativeFunc struct { Mod string Name string Fn func(ctx context.Context, args []any) (any, error) Params []string }
NativeFunc is a starlark function implemented in go
type Opt ¶
type Opt = func(e *Engine)
func OptHttpClientTimeout ¶
func OptHttpClientTransport ¶
func OptHttpClientTransport(t http.RoundTripper) Opt
func OptLibName ¶
func OptNativeFuncs ¶
func OptNativeFuncs(fns []NativeFunc) Opt
Click to show internal directories.
Click to hide internal directories.