Documentation
¶
Index ¶
- Variables
- func CaptchaHandler() gin.HandlerFunc
- func CounterMiddleware() gin.HandlerFunc
- func ErrorPage(fsys fs.FS, msg string, err error) string
- func ErrorTmpl(fsys fs.FS, msg string, err error) string
- func FAQFAQPage(fsys fs.FS) string
- func FooterPage(fsys fs.FS) string
- func HeaderPage(fsys fs.FS) string
- func MakeTmpl(fsys fs.FS, title string) utils.TmplRecord
- func MetricsPage(fsys fs.FS) string
- func SuccessTmpl(fsys fs.FS, msg string) string
- type Mem
- type Memory
Constants ¶
This section is empty.
Variables ¶
View Source
var Time0 time.Time
Time0 represents initial time when we started the server
View Source
var TotalDeleteRequests uint64
TotalDeleteRequests counts total number of DELETE requests received by 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
View Source
var TotalPutRequests uint64
TotalPutRequests counts total number of PUT requests received by the server
Functions ¶
func CaptchaHandler ¶
func CaptchaHandler() gin.HandlerFunc
CaptchaHandler provides access to captcha server
func CounterMiddleware ¶
func CounterMiddleware() gin.HandlerFunc
CounterMiddleware counts GET/POST/PUT/DELETE requests
Types ¶
Click to show internal directories.
Click to hide internal directories.