runtime

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 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 (rt *Binary) Run(ctx context.Context, query string, params map[string]interface{}) ([]byte, error)

func (*Binary) Version added in v1.5.0

func (rt *Binary) Version(ctx context.Context) (string, 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)

func (*Builtin) Version added in v1.5.0

func (r *Builtin) Version(_ context.Context) (string, error)

type Func added in v1.3.1

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

type FuncStruct added in v1.3.1

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

func (FuncStruct) Run added in v1.3.1

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

func (FuncStruct) Version added in v1.5.0

func (f FuncStruct) Version(_ context.Context) (string, error)

type HTTPParams added in v0.2.0

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

type Options

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

type Remote

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

func NewRemote

func NewRemote(u string, params map[string]interface{}) (*Remote, error)

func (*Remote) Run

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

func (*Remote) Version added in v1.5.0

func (rt *Remote) Version(ctx context.Context) (string, error)

type Runtime

type Runtime interface {
	Version(ctx context.Context) (string, error)

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

func AsFunc added in v1.3.1

func AsFunc(fn Func) Runtime

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