Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultErrorHandler ¶
func GetDefaultErrorHandler() func(msg interface{}, code int)
func SetDefaultErrorHandler ¶
func SetDefaultErrorHandler()
func SetErrorHandler ¶
func SetErrorHandler(handler func(msg interface{}, code int))
Types ¶
type HTTPError ¶
type HTTPError struct { Code int `json:"code,omitempty"` Type string `json:"type"` Title string `json:"title"` Detail string `json:"detail"` Violations []map[string]string `json:"violations"` }
func NewHTTPError ¶
func NewHTTPError(response *resty.Response) (err *HTTPError)
type InvalidDomainError ¶
func NewInvalidDomainError ¶
func NewInvalidDomainError(validDomains []string, domain string) *InvalidDomainError
func (*InvalidDomainError) Error ¶
func (err *InvalidDomainError) Error() string
Click to show internal directories.
Click to hide internal directories.