thrustrpc

package
v0.0.0-...-c7d44dc Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimeoutErr = errors.New("Timeout")
)

Functions

This section is empty.

Types

type Rpc

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

func NewRpc

func NewRpc(win *thrwin.Window, logger log.Logger) (*Rpc, error)

func (*Rpc) Call

func (rpc *Rpc) Call(method string, arg interface{}, timeout time.Duration) (interface{}, error)

func (*Rpc) Handle

func (rpc *Rpc) Handle(er thrcmd.EventResult, this *thrwin.Window)

func (*Rpc) Register

func (rpc *Rpc) Register(mname string, handlerFunc interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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