jsonrpc

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetClient

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

Client is a minimal JSON-RPC 2.0 client.

func New

func New(endpoint string, httpClient *http.Client) *NetClient

New creates a new JSON-RPC client for the given endpoint.

func (*NetClient) Call

func (c *NetClient) Call(ctx context.Context, method string, params any, result any) error

Call performs a JSON-RPC request and decodes the result into result.

Jump to

Keyboard shortcuts

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