bridge

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 1 Imported by: 13

Documentation

Overview

Used internally for the RPC protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReturnTypeError

func ReturnTypeError(expected string) error

Types

type PdkBridge

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

func New

func New(ch chan interface{}) PdkBridge

func (PdkBridge) Ask

func (b PdkBridge) Ask(method string, args ...interface{}) (interface{}, error)

func (PdkBridge) AskClose added in v0.3.1

func (b PdkBridge) AskClose(method string, args ...interface{})

func (PdkBridge) AskFloat

func (b PdkBridge) AskFloat(method string, args ...interface{}) (f float64, err error)

func (PdkBridge) AskInt

func (b PdkBridge) AskInt(method string, args ...interface{}) (i int, err error)

func (PdkBridge) AskMap

func (b PdkBridge) AskMap(method string, args ...interface{}) (m map[string][]string, err error)

func (PdkBridge) AskString

func (b PdkBridge) AskString(method string, args ...interface{}) (s string, err error)

type StepData

type StepData struct {
	Method string
	Args   []interface{}
}

Jump to

Keyboard shortcuts

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