nw_http

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(client *http.Client) nw_client.Http

Types

type Client

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

func (*Client) Call

func (z *Client) Call(hash, endpoint string, req *http.Request) (res *http.Response, latency time.Duration, err error)

Call RPC. res will be nil on an error

type Mock

type Mock struct {
}

func (Mock) Call

func (z Mock) Call(clientHash string, endpoint string, req *http.Request) (res *http.Response, latency time.Duration, err error)

Jump to

Keyboard shortcuts

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