Documentation ¶
Index ¶
- type RPC
- func (r *RPC) Attach() (*rpc.Client, error)
- func (r *RPC) GetApis(apiModule ...string) []rpc.API
- func (r *RPC) GetHttpApis(apiModules []string) []rpc.API
- func (r *RPC) GetInProcessApis(apiModules []string) []rpc.API
- func (r *RPC) GetIpcApis(apiModules []string) []rpc.API
- func (r *RPC) GetPublicApis(apiModules []string) []rpc.API
- func (r *RPC) GetWSApis(apiModules []string) []rpc.API
- func (r *RPC) StartHTTPEndpoint(endpoint string, apis []rpc.API, modules []string, cors []string, ...) (net.Listener, *rpc.Server, error)
- func (r *RPC) StartRPC() error
- func (r *RPC) StartWSEndpoint(endpoint string, apis []rpc.API, modules []string, wsOrigins []string, ...) (net.Listener, *rpc.Server, error)
- func (r *RPC) StopRPC()
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 (*RPC) GetInProcessApis ¶
In-proc 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
Click to show internal directories.
Click to hide internal directories.