Documentation
¶
Overview ¶
Package errors contains common business errors to be user all over the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadRequest = errors.New("The request was invalid or cannot be served.") ErrBadResponse = errors.New("The response was invalid or cannot be served.") )
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
Host string
// contains filtered or unexported fields
}
func NewHTTPClient ¶
func NewHTTPClient(host string) HTTPClient
func (*HTTPClient) MakeRequest ¶
type InvalidHostError ¶
type InvalidHostError struct {
// contains filtered or unexported fields
}
func NewInvalidHostError ¶
func NewInvalidHostError(err error) InvalidHostError
func (InvalidHostError) Error ¶
func (err InvalidHostError) Error() string
type RequestError ¶
type RequestError struct {
// contains filtered or unexported fields
}
func NewRequestError ¶
func NewRequestError(err error) RequestError
func (RequestError) Error ¶
func (err RequestError) Error() string
type ResponseError ¶
type ResponseError struct {
// contains filtered or unexported fields
}
func NewResponseError ¶
func NewResponseError(err error) ResponseError
func (ResponseError) Error ¶
func (err ResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.