httpconn

package
v0.0.0-...-7274d62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

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

func NewHttpConn

func NewHttpConn(rpcUrl 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