client

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 4

Documentation

Index

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 NewFullNodeRPC(ctx context.Context, apiInfo *config.APIInfo) (v1.FullNode, jsonrpc.ClientCloser, error)

func NewGatewayRPC

func NewGatewayRPC(ctx context.Context, cfg *config.GatewayNode) (gatewayAPIV2.IGateway, jsonrpc.ClientCloser, error)

func NewMinerRPC

func NewMinerRPC(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (api.MinerAPI, jsonrpc.ClientCloser, error)

NewMinerRPC creates a new http jsonrpc client for miner

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL