Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BadRequest = BlockError{Code: 400, Description: "request is invalid"}
View Source
var DBError = BlockError{Code: 500, Description: "DB got an exception."}
View Source
var ERR_OK = 200
View Source
var InternalError = BlockError{Code: 500, Description: "Internal error. Please retry"}
View Source
var NoError = BlockError{Code: ERR_OK}
View Source
var NoSuchBackend = BlockError{Code: 404, Description: "The specified backend does not exists."}
View Source
var NoSuchType = BlockError{Code: 404, Description: "The specified backend type does not exists."}
Functions ¶
This section is empty.
Types ¶
type BlockError ¶
func (*BlockError) Error ¶
func (err *BlockError) Error() error
Click to show internal directories.
Click to hide internal directories.