client

package
v1.24.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 55

Documentation

Index

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.CommonNet, 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, opts ...jsonrpc.Option) (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

func NewWalletRPCV0(ctx context.Context, addr string, requestHeader http.Header) (api.Wallet, jsonrpc.ClientCloser, error)

func NewWorkerRPCV0 added in v1.9.0

func NewWorkerRPCV0(ctx context.Context, addr string, requestHeader http.Header) (v0api.Worker, jsonrpc.ClientCloser, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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