Versions in this module Expand all Collapse all v0 v0.1.0 Apr 14, 2017 Changes in this version + var BadGateway = merry.New("Bad Gateway").WithHTTPCode(http.StatusBadGateway).WithUserMessage("Bad Gateway") + var BadRequest = merry.New("Bad request").WithHTTPCode(400).WithUserMessage("Bad request") + var InternalError = merry.New("Internal Error").WithHTTPCode(500).WithUserMessage("Internal Error") + var NotAuthorized = merry.New("Not Authorized").WithHTTPCode(401).WithUserMessage("Not Authorized") + var NotFound = merry.New("Resource not found").WithHTTPCode(404).WithUserMessage("Resource not found") + var PermissionError = merry.New("Permission Error").WithHTTPCode(403).WithUserMessage("Permission Error") + func CheckPanic(e error) + func GenerateRandomBytes(n int) []byte + func GenerateRandomString(s int) string + func GetNow() int64 + func HttpCheckPanic(err error, userError merry.Error) + func SliceStringContains(s []string, e string) bool + func StringPtr(s string) *string + type ContextKey int + const IsBrowserRequest + const Role + const Service + const Subdomain + const TokenInfo + const VaultToken