Documentation
¶
Index ¶
- Constants
- type AppError
- func AlreadyExists(format string, a ...interface{}) AppError
- func AuthenticationFailed(format string, a ...interface{}) AppError
- func Internal(format string, a ...interface{}) AppError
- func NotFound(format string, a ...interface{}) AppError
- func UpstreamServerCallFailed(format string, a ...interface{}) AppError
- func WrongInput(format string, a ...interface{}) AppError
Constants ¶
View Source
const ( InternalError = 1 NotFoundError = 2 AlreadyExistsError = 3 WrongInputError = 4 UpstreamServerCallFailedError = 5 AuthenticationFailedError = 6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppError ¶
type AppError interface {
Append(string, ...interface{}) AppError
Code() int
Desc() string
Error() string
}
func AlreadyExists ¶
func AuthenticationFailed ¶
func WrongInput ¶
Click to show internal directories.
Click to hide internal directories.