Documentation
¶
Index ¶
- Constants
- func DialMinerRPC(ctx context.Context, addr string, token string, requestHeader http.Header, ...) (api.MinerAPI, jsonrpc.ClientCloser, error)
- func NewCommonRPC(ctx context.Context, addr string, requestHeader http.Header) (api.Common, jsonrpc.ClientCloser, error)
- func NewFullNodeRPC(ctx context.Context, apiInfo *config.APIInfo) (v1.FullNode, jsonrpc.ClientCloser, error)
- func NewGatewayRPC(ctx context.Context, cfg *config.GatewayNode) (gatewayAPIV2.IGateway, jsonrpc.ClientCloser, error)
- func NewMinerRPC(ctx context.Context, addr string, requestHeader http.Header, ...) (api.MinerAPI, jsonrpc.ClientCloser, error)
Constants ¶
View Source
const APINamespace = "miner.MinerAPI"
View Source
const MajorVersion = 0
View Source
const MethodNamespace = "Filecoin"
Variables ¶
This section is empty.
Functions ¶
func DialMinerRPC ¶ added in v1.14.0
func DialMinerRPC(ctx context.Context, addr string, token string, requestHeader http.Header, opts ...jsonrpc.Option) (api.MinerAPI, jsonrpc.ClientCloser, error)
DialMinerRPC is a more convinient way of building client, as it resolves any format (url, multiaddr) of addr string.
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 ¶ added in v1.13.1
func NewGatewayRPC ¶
func NewGatewayRPC(ctx context.Context, cfg *config.GatewayNode) (gatewayAPIV2.IGateway, jsonrpc.ClientCloser, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.