rest

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	New() Interface
	BearerToken(token string) Interface
	BaseURL(baseURL string) Interface
	Client(httpClient *http.Client) Interface
	UserAgent(userAgent string) Interface
	Header(key, value string) Interface
	Get() Interface
	Post() Interface
	Patch() Interface
	Endpoint(endpoint string) Interface
	QueryStruct(queryStruct interface{}) Interface
	BodyJSON(bodyJSON interface{}) Interface
	Request(ctx context.Context) (*http.Request, error)
	Receive(ctx context.Context, success, failure interface{}) error
}

func New

func New() Interface

Jump to

Keyboard shortcuts

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