Documentation ¶
Index ¶
- func NewPresenter(logger *log.Logger) *presenter
- type AppError
- func BadGateway(format string, a ...interface{}) AppError
- func BadRequest(format string, a ...interface{}) AppError
- func External(format string, a ...interface{}) AppError
- func Forbidden(format string, a ...interface{}) AppError
- func Internal(format string, a ...interface{}) AppError
- func InvalidGlobalAccount(format string, a ...interface{}) AppError
- func NotFound(format string, a ...interface{}) AppError
- type CauseCode
- type ErrCode
- type ErrComponent
- type ErrReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPresenter ¶
Types ¶
type AppError ¶
type AppError interface { Append(string, ...interface{}) AppError SetReason(ErrReason) AppError SetComponent(ErrComponent) AppError Code() ErrCode Cause() CauseCode Component() ErrComponent Reason() ErrReason Error() string }
func BadGateway ¶
func BadRequest ¶
func InvalidGlobalAccount ¶
type ErrComponent ¶
type ErrComponent string
const ( ErrCompassManager ErrComponent = "compass manager" ErrCompassDirectorClient ErrComponent = "compass director client" ErrCompassDirector ErrComponent = "compass director" ErrMpsOAuth2 ErrComponent = "mps oauth2" )
Click to show internal directories.
Click to hide internal directories.