Documentation ¶
Index ¶
- Variables
- func Bottom(c *gin.Context) string
- func CaptchaHandler() gin.HandlerFunc
- func ErrorTmpl(c *gin.Context, msg string, err error) string
- func FAQHandler(c *gin.Context)
- func HandleError(c *gin.Context, msg string, err error)
- func MakeTmpl(c *gin.Context, title string) utils.TmplRecord
- func StatusHandler(c *gin.Context)
- func SuccessTmpl(c *gin.Context, msg string) string
- func Top(c *gin.Context) string
- type Mem
- type Memory
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticFs embed.FS
View Source
var Time0 time.Time
Time0 represents initial time when we started the server
View Source
var TotalGetRequests uint64
TotalGetRequests counts total number of GET requests received by the server
View Source
var TotalPostRequests uint64
TotalPostRequests counts total number of POST requests received by the server
Functions ¶
func CaptchaHandler ¶
func CaptchaHandler() gin.HandlerFunc
CaptchaHandler provides access to captcha server
func HandleError ¶
HandlerError handles http server errors
func MakeTmpl ¶
func MakeTmpl(c *gin.Context, title string) utils.TmplRecord
helper function to make initial template struct
func SuccessTmpl ¶
SuccessTmpl provides success template message
Types ¶
Click to show internal directories.
Click to hide internal directories.