Documentation
¶
Index ¶
Constants ¶
const CLIENT_400 = `Something was wrong with the request`
const CLIENT_401 = `You are not allowed to access this ressource`
const CLIENT_403 = `You are not allowed to access this ressource`
const CLIENT_404 = `One or many elements were not found`
const CLIENT_409 = `You are facing a conflict. Please verify what you want and the existing data`
const CLIENT_440 = `Login informations timeout`
const CLIENT_498 = `Your token is invalid`
const CLIENT_499 = `You need a token to access this ressource`
const SERV_500 = `Unexpected error`
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(w http.ResponseWriter)
Handle ********************************************************************** * Handler an error with a recover in order to stop the current process and * to resolve an error to the client *****************************************************************************
func HandleSimple ¶
func HandleSimple()
HandleSimple **************************************************************** * Handler an error with a recover in order to stop the current process *****************************************************************************
func HasError ¶
HasError ******************************************************************** * Log l'erreur et return true en cas d'erreur *****************************************************************************
func HasStrError ¶
HasStrError ***************************************************************** * Log l'erreur (en cas de string) et return true en cas d'erreur *****************************************************************************
Types ¶
This section is empty.