Documentation ¶
Overview ¶
use redis as cache
Index ¶
- Constants
- Variables
- func EmailConfirm(id uint, appointment model.Appointment, action string)
- func SendMail(sender string, from string, to []string, subject string, contentType string, ...)
- func SetCookie(c *gin.Context, key, value string, expire int)
- func SetCookies(c *gin.Context, fields map[string]string, expire int)
- func Start()
- type EmailData
Constants ¶
View Source
const ( Expire1min = 60 Expire10min = 600 Expire30min = 1800 )
View Source
const Cookies10days = 864000
Variables ¶
View Source
var Cache *redis.Client
Functions ¶
func EmailConfirm ¶
func EmailConfirm(id uint, appointment model.Appointment, action string)
Types ¶
Click to show internal directories.
Click to hide internal directories.