rpc

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPC

type RPC struct {
	DashboardTargetURL string
	NetID              uint `json:"NetID"`
	// contains filtered or unexported fields
}

func NewRPC

func NewRPC(cfgFile string) (*RPC, error)

func (*RPC) Attach

func (r *RPC) Attach() (*rpc.Client, error)

func (*RPC) GetApis

func (r *RPC) GetApis(apiModule ...string) []rpc.API

func (*RPC) GetHttpApis

func (r *RPC) GetHttpApis() []rpc.API

Http apis

func (*RPC) GetInProcessApis

func (r *RPC) GetInProcessApis() []rpc.API

In-proc apis

func (*RPC) GetIpcApis

func (r *RPC) GetIpcApis() []rpc.API

Ipc apis

func (*RPC) GetPublicApis

func (r *RPC) GetPublicApis() []rpc.API

func (*RPC) GetWSApis

func (r *RPC) GetWSApis() []rpc.API

WS apis

func (*RPC) StartHTTPEndpoint added in v1.3.0

func (r *RPC) StartHTTPEndpoint(endpoint string, apis []rpc.API, modules []string, cors []string, vhosts []string, timeouts rpc.HTTPTimeouts) (net.Listener, *rpc.Server, error)

StartHTTPEndpoint starts the HTTP RPC endpoint, configured with cors/vhosts/modules

func (*RPC) StartRPC

func (r *RPC) StartRPC() error

func (*RPC) StartWSEndpoint added in v1.3.0

func (r *RPC) StartWSEndpoint(endpoint string, apis []rpc.API, modules []string, wsOrigins []string, exposeAll bool) (net.Listener, *rpc.Server, error)

StartWSEndpoint starts a websocket endpoint

func (*RPC) StopRPC

func (r *RPC) StopRPC()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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