jsonrpchttp

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client allows to connect to a JSON-RPC server

func NewClient

func NewClient(addr string, cfg *Config) (*Client, error)

NewClient creates a new client capable of connecting to a JSON-RPC server

func NewClientFromClient

func NewClientFromClient(s autorest.Sender) *Client

NewClient creates a new client capable of connecting to a JSON-RPC server

func (*Client) Call

func (c *Client) Call(ctx context.Context, r *jsonrpc.Request, res interface{}) error

type Config

type Config struct {
	HTTP *comhttp.ClientConfig
}

func (*Config) SetDefault

func (cfg *Config) SetDefault() *Config

Jump to

Keyboard shortcuts

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