Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code int
Code are codes returned by service indicating operation results; it is an integer value of the enum that corresponds to a given error
const ( CodeGeneralFailure Code = iota CodeInvalidOperation CodeBadRequest CodeNotFound CodeCircuitBreak CodeOperationLock CodeAccessForbidden CodeDataCorruption CodeNotImplemented CodeReservedCount )
These are the integer values of the enum that corresponds to a given error
func (Code) HTTPStatusCode ¶
HTTPStatusCode translates the built-in error Code to corresponding HTTP status code
Click to show internal directories.
Click to hide internal directories.