Documentation
¶
Index ¶
- Constants
- func CaptchaImageHandler() gin.HandlerFunc
- func CaptchaImageURL(baseURL, id string) string
- func CaptchaNewHandler(baseURL string) gin.HandlerFunc
- func DeleteSessionValue(g *gin.Context, key string) error
- func EnsureSession(g *gin.Context) error
- func InitSessionStore(cfg *servercfg.Snapshot) error
- func NewCaptchaHTML(baseURL string) template.HTML
- func RequestInput(g *gin.Context, key string) (string, bool)
- func RequestParam(g *gin.Context, key string) (string, bool)
- func SessionValue(g *gin.Context, key string) interface{}
- func SetRequestData(g *gin.Context, key string, value interface{})
- func SetRequestInput(g *gin.Context, key, value string)
- func SetRequestParam(g *gin.Context, key, value string)
- func SetSessionConfigProvider(provider func() *servercfg.Snapshot)
- func SetSessionValue(g *gin.Context, key string, value interface{}) error
- func VerifyCaptcha(id, answer string) bool
Constants ¶
View Source
const ( CaptchaIDField = "captcha_id" CaptchaValueField = "captcha" )
Variables ¶
This section is empty.
Functions ¶
func CaptchaImageHandler ¶
func CaptchaImageHandler() gin.HandlerFunc
func CaptchaImageURL ¶
func CaptchaNewHandler ¶
func CaptchaNewHandler(baseURL string) gin.HandlerFunc
func EnsureSession ¶
func InitSessionStore ¶
func NewCaptchaHTML ¶
func SessionValue ¶
func SetRequestData ¶
func SetRequestInput ¶
SetRequestInput records a value submitted in the request body. Unlike request params it never takes precedence over server-normalized values.
func SetRequestParam ¶
func VerifyCaptcha ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.