Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPStatus ¶
func HTTPStatus ¶
Types ¶
type Error ¶
type Error struct {
Kind Kind // To make errors understandable
Op string // <layer>.<domain>.<action>
Err error // wrapped error
Message string // client safe and friendly message
Stack []byte // stack traces
}
func (*Error) WithMessage ¶
type Kind ¶
type Kind string
var ( InvalidInput Kind = "invalid_input" AlreadyExists Kind = "already_exist" NotFound Kind = "not_found" Conflict Kind = "conflict" Forbidden Kind = "forbidden" RequestTimeout Kind = "request_timeout" Internal Kind = "internal" Dependency Kind = "dependency_failure" DatabaseErr Kind = "database_error" )
Click to show internal directories.
Click to hide internal directories.