runnable

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostErr

type HostErr error

func NewHostError

func NewHostError(message string) HostErr

type RunErr

type RunErr struct {
	Code int
	// contains filtered or unexported fields
}

RunErr adds a status code for use in FFI calls to return_result()

func NewError

func NewError(code int, message string) RunErr

NewError creates a new RunErr, which is a normal Go error plus an error code

type Runnable

type Runnable interface {
	Run(input []byte) ([]byte, error)
}

The Runnable interface is all that needs to be implemented by a Reactr runnable.

Jump to

Keyboard shortcuts

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