httpconn

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpConn

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

func NewCustomHttpConn added in v1.0.4

func NewCustomHttpConn(rpcUrl string, cli *http.Client) *HttpConn

func NewHttpConn

func NewHttpConn(rpcUrl string, backupRPCs []string) *HttpConn

func (*HttpConn) Request

func (h *HttpConn) Request(ctx context.Context, op Operation) ([]byte, error)

type Operation

type Operation struct {
	Method string
	Params []interface{}
}

Jump to

Keyboard shortcuts

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