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
Click to show internal directories.
Click to hide internal directories.