service

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID      = "go-bn"
	JSONRpc = "1.0"
)

Boiler RPC fields.

Variables

View Source
var ErrRPCQuery = errors.New("failed to perform rpc query")

ErrRPCQuery error when rpc query fails.

Functions

This section is empty.

Types

type RPC

type RPC interface {
	Do(ctx context.Context, method string, out interface{}, args ...interface{}) error
}

RPC interface with a rpc server.

func NewCache

func NewCache(rpc RPC) RPC

NewCache returns a cache wrapper around an RPC service.

func NewRPC

func NewRPC(cfg *config.RPC, c *http.Client) RPC

NewRPC returns a new RPC configured RPC client.

Jump to

Keyboard shortcuts

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