host

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 14 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWorkflowSpec

func GetWorkflowSpec(ctx context.Context, modCfg ModuleConfig, binary []byte, config []byte) (*sdk.WorkflowSpec, error)

Types

type Module

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

func NewModule

func NewModule(modCfg ModuleConfig, binary []byte) (*Module, error)

func (*Module) Close

func (m *Module) Close()

func (*Module) Run

func (m *Module) Run(request *wasmpb.Request) (*wasmpb.Response, error)

type ModuleConfig

type ModuleConfig struct {
	TickInterval time.Duration
	Timeout      *time.Duration
}

Jump to

Keyboard shortcuts

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