Documentation
¶
Index ¶
- type Contract
- type Error
- func Conflict(code, publicMessage string, internal error) *Error
- func Forbidden(code, publicMessage string, internal error) *Error
- func From(code, publicMessage string, err error) *Error
- func InternalError(code, publicMessage string, internal error) *Error
- func Invalid(code, publicMessage string, internal error) *Error
- func New(code string, statusCode int, publicMessage string, internalErr error, ...) *Error
- func NotFound(code, publicMessage string, internal error) *Error
- func ServiceUnavailable(code, publicMessage string, internal error) *Error
- func Unauthorized(code, publicMessage string, internal error) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func InternalError ¶
func ServiceUnavailable ¶
func Unauthorized ¶
func (*Error) StatusCode ¶
Click to show internal directories.
Click to hide internal directories.