runtime

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithLog

func WithLog(writer io.Writer) Option

func WithLogLevel

func WithLogLevel(lvl logging.Level) Option

func WithParam

func WithParam(name string, value interface{}) Option

func WithParams

func WithParams(params map[string]interface{}) Option

type Options

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

func NewOptions added in v0.4.0

func NewOptions(setters []Option) *Options

func (*Options) WithContext added in v0.4.0

func (opts *Options) WithContext(parent context.Context) context.Context

type Program

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

func NewProgram

func NewProgram(src string, body core.Expression) (*Program, error)

func (*Program) MustRun

func (p *Program) MustRun(ctx context.Context, setters ...Option) []byte

func (*Program) Run

func (p *Program) Run(ctx context.Context, setters ...Option) (result []byte, err error)

func (*Program) Source

func (p *Program) Source() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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