Documentation ¶
Index ¶
- type RPC
- func (r *RPC) Attach() (*rpc.Client, error)
- func (r *RPC) GetApis(apiModule ...string) []rpc.API
- func (r *RPC) GetHttpApis() []rpc.API
- func (r *RPC) GetInProcessApis() []rpc.API
- func (r *RPC) GetIpcApis() []rpc.API
- func (r *RPC) GetPublicApis() []rpc.API
- func (r *RPC) GetWSApis() []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) GetPublicApis ¶
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
Click to show internal directories.
Click to hide internal directories.