framework

package
v0.35.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: GPL-3.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CaptchaIDField    = "captcha_id"
	CaptchaValueField = "captcha"
)

Variables

This section is empty.

Functions

func CaptchaImageHandler

func CaptchaImageHandler() gin.HandlerFunc

func CaptchaImageURL

func CaptchaImageURL(baseURL, id string) string

func CaptchaNewHandler

func CaptchaNewHandler(baseURL string) gin.HandlerFunc

func DeleteSessionValue

func DeleteSessionValue(g *gin.Context, key string) error

func EnsureSession

func EnsureSession(g *gin.Context) error

func InitSessionStore

func InitSessionStore(cfg *servercfg.Snapshot) error

func NewCaptchaHTML

func NewCaptchaHTML(baseURL string) template.HTML

func RequestInput

func RequestInput(g *gin.Context, key string) (string, bool)

func RequestParam

func RequestParam(g *gin.Context, key string) (string, bool)

func SessionValue

func SessionValue(g *gin.Context, key string) any

func SetRequestData

func SetRequestData(g *gin.Context, key string, value any)

func SetRequestInput

func SetRequestInput(g *gin.Context, key, value string)

SetRequestInput records a value submitted in the request body. Unlike request params it never takes precedence over server-normalized values.

func SetRequestParam

func SetRequestParam(g *gin.Context, key, value string)

func SetSessionConfigProvider

func SetSessionConfigProvider(provider func() *servercfg.Snapshot)

func SetSessionValue

func SetSessionValue(g *gin.Context, key string, value any) error

func VerifyCaptcha

func VerifyCaptcha(id, answer string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL