httpclient

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient struct {
	UrlBase string
	// contains filtered or unexported fields
}

func NewHttpClient

func NewHttpClient(urlBase string) *HttpClient

func (*HttpClient) DoRequest

func (p *HttpClient) DoRequest(s *sling.Sling, res interface{}) error

func (*HttpClient) NewRequest

func (p *HttpClient) NewRequest() *sling.Sling

type ServerError

type ServerError struct {
	Err string `json:"error"`
}

func (ServerError) Error

func (e ServerError) Error() string

Jump to

Keyboard shortcuts

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