runtime

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 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 WithBrowser

func WithBrowser(address string) Option

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

func WithProxy

func WithProxy(address string) Option

func WithRandomUserAgent

func WithRandomUserAgent() Option

func WithUserAgent

func WithUserAgent(value string) Option

type Options

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

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) ([]byte, 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