Documentation ¶ Index ¶ func NewClient(client *http.Client) nw_client.Http type Client func (z *Client) Call(hash, endpoint string, req *http.Request) (res *http.Response, latency time.Duration, err error) type Mock func (z Mock) Call(clientHash string, endpoint string, req *http.Request) (res *http.Response, latency time.Duration, err error) 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) Source Files ¶ View all Source files http.go mock.go Click to show internal directories. Click to hide internal directories.