Documentation ¶
Index ¶
- func NewCommonRPCV0(ctx context.Context, addr string, requestHeader http.Header) (api.Common, jsonrpc.ClientCloser, error)
- func NewFullNodeRPCV0(ctx context.Context, addr string, requestHeader http.Header) (v0api.FullNode, jsonrpc.ClientCloser, error)
- func NewFullNodeRPCV1(ctx context.Context, addr string, requestHeader http.Header) (api.FullNode, jsonrpc.ClientCloser, error)
- func NewGatewayRPCV0(ctx context.Context, addr string, requestHeader http.Header, ...) (v0api.Gateway, jsonrpc.ClientCloser, error)
- func NewGatewayRPCV1(ctx context.Context, addr string, requestHeader http.Header, ...) (api.Gateway, jsonrpc.ClientCloser, error)
- func NewStorageMinerRPCV0(ctx context.Context, addr string, requestHeader http.Header, ...) (v0api.StorageMiner, jsonrpc.ClientCloser, error)
- func NewWalletRPCV0(ctx context.Context, addr string, requestHeader http.Header) (api.Wallet, jsonrpc.ClientCloser, error)
- func NewWorkerRPCV0(ctx context.Context, addr string, requestHeader http.Header) (api.Worker, jsonrpc.ClientCloser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommonRPCV0 ¶ added in v1.9.0
func NewCommonRPCV0(ctx context.Context, addr string, requestHeader http.Header) (api.Common, jsonrpc.ClientCloser, error)
NewCommonRPCV0 creates a new http jsonrpc client.
func NewFullNodeRPCV0 ¶ added in v1.9.0
func NewFullNodeRPCV0(ctx context.Context, addr string, requestHeader http.Header) (v0api.FullNode, jsonrpc.ClientCloser, error)
NewFullNodeRPCV0 creates a new http jsonrpc client.
func NewFullNodeRPCV1 ¶ added in v1.9.0
func NewFullNodeRPCV1(ctx context.Context, addr string, requestHeader http.Header) (api.FullNode, jsonrpc.ClientCloser, error)
NewFullNodeRPCV1 creates a new http jsonrpc client.
func NewGatewayRPCV0 ¶ added in v1.9.0
func NewGatewayRPCV0(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (v0api.Gateway, jsonrpc.ClientCloser, error)
NewGatewayRPCV0 creates a new http jsonrpc client for a gateway node.
func NewGatewayRPCV1 ¶ added in v1.9.0
func NewGatewayRPCV1(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (api.Gateway, jsonrpc.ClientCloser, error)
NewGatewayRPCV1 creates a new http jsonrpc client for a gateway node.
func NewStorageMinerRPCV0 ¶ added in v1.9.0
func NewStorageMinerRPCV0(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (v0api.StorageMiner, jsonrpc.ClientCloser, error)
NewStorageMinerRPCV0 creates a new http jsonrpc client for miner
func NewWalletRPCV0 ¶ added in v1.9.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.