data

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(c *http.Client) *client

NewClient will setup and return a new http client.

Types

type HTTPClient

type HTTPClient interface {
	// Do will execute an http request.
	Do(ctx context.Context, method, endpoint string, expStatus int, req interface{}, out interface{}) error
}

HTTPClient defines a simple interface to execute an http request and map the request and response objects.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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