httpadapter

package
v0.0.0-...-3536abc Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNilData = errors.New("No data to parse ")
	ErrorNilAuth = errors.New("No auth to parse ")
)

Functions

func New

func New(client HTTPClient, baseUrl string) *httpAdapter

func NewJsonReader

func NewJsonReader(data interface{}) (io.Reader, error)

func NewMultipartReader

func NewMultipartReader(data interface{}) (reader io.Reader, boundary string, err error)

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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