runtime

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary added in v0.2.0

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

func NewBinary added in v0.2.0

func NewBinary(path string, cdpAddress string, params map[string]interface{}) (*Binary, error)

func (*Binary) Run added in v0.2.0

func (b *Binary) Run(ctx context.Context, query string, params map[string]interface{}) ([]byte, error)

type Builtin added in v0.2.0

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

func NewBuiltin added in v0.2.0

func NewBuiltin(cdp string, _ map[string]interface{}) (*Builtin, error)

func (*Builtin) Run added in v0.2.0

func (r *Builtin) Run(ctx context.Context, query string, params map[string]interface{}) ([]byte, error)

type HTTP added in v0.2.0

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

func NewHTTP added in v0.2.0

func NewHTTP(url string, params map[string]interface{}) (*HTTP, error)

func (HTTP) Run added in v0.2.0

func (r HTTP) Run(ctx context.Context, query string, params map[string]interface{}) ([]byte, error)

type HTTPParams added in v0.2.0

type HTTPParams struct {
	Headers http.Header
	Path    string
	Cookies []http.Cookie
}

type Options

type Options struct {
	RemoteURL  string
	CDPAddress string
	Params     map[string]interface{}
}

type Runtime

type Runtime interface {
	Run(ctx context.Context, query string, params map[string]interface{}) ([]byte, error)
}

func New

func New(opts Options) (Runtime, error)

Jump to

Keyboard shortcuts

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