rpc

package
v1.4.2-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 18 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(apiModules []string) []rpc.API

Http apis

func (*RPC) GetInProcessApis

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

In-proc apis

func (*RPC) GetIpcApis

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

Ipc apis

func (*RPC) GetPublicApis

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

func (*RPC) GetWSApis

func (r *RPC) GetWSApis(apiModules []string) []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 RpcCall 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
grpc
proto
Package proto is a reverse proxy.
Package proto is a reverse proxy.

Jump to

Keyboard shortcuts

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