runtime

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Native

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

func NewNative

func NewNative(cdp string) *Native

func (*Native) Run

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

type Options

type Options struct {
	RemoteURL string
	CDP       string
}

type Remote

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

func NewRemote

func NewRemote(url string) *Remote

func (Remote) Run

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

type Runtime

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

func New

func New(opts Options) Runtime

Jump to

Keyboard shortcuts

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