Documentation ¶
Index ¶
- func CheckEmail(value string) bool
- func ConfigRouter(router *gin.Engine)
- func Connect(dbNumber int) *redis.Client
- func ConnectDB() *gorm.DB
- func ErrorFatal(name string, err error)
- func ErrorPanic(err error)
- func JsonRequested(c *gin.Context) bool
- func LogError(name string, err error)
- func LogEvent(name string, message string)
- func RandomBytes(length uint32) ([]byte, error)
- func RandomString(length uint32) (string, error)
- func Redirect(url string) gin.HandlerFunc
- func SessionValid(uid, token *string, redisClient *redis.Client) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigRouter ¶
func ErrorFatal ¶
func ErrorPanic ¶
func ErrorPanic(err error)
func JsonRequested ¶
returns true, if the client requested json format, also sets the response to 406, if not
func RandomBytes ¶
func RandomString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.