Documentation ¶
Index ¶
- func NewCommonRPC(ctx context.Context, addr string, requestHeader http.Header) (api.Common, jsonrpc.ClientCloser, error)
- func NewFullNodeRPC(ctx context.Context, addr string, requestHeader http.Header) (api.FullNode, jsonrpc.ClientCloser, error)
- func NewStorageMinerRPC(ctx context.Context, addr string, requestHeader http.Header, ...) (api.StorageMiner, jsonrpc.ClientCloser, error)
- func NewWorkerRPC(ctx context.Context, addr string, requestHeader http.Header) (api.WorkerAPI, jsonrpc.ClientCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommonRPC ¶
func NewCommonRPC(ctx context.Context, addr string, requestHeader http.Header) (api.Common, jsonrpc.ClientCloser, error)
NewCommonRPC creates a new http jsonrpc client.
func NewFullNodeRPC ¶
func NewFullNodeRPC(ctx context.Context, addr string, requestHeader http.Header) (api.FullNode, jsonrpc.ClientCloser, error)
NewFullNodeRPC creates a new http jsonrpc client.
func NewStorageMinerRPC ¶
func NewStorageMinerRPC(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (api.StorageMiner, jsonrpc.ClientCloser, error)
NewStorageMinerRPC creates a new http jsonrpc client for miner
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.