MCPcopy Create free account

hub / github.com/710leo/toruk / functions

Functions46 in github.com/710leo/toruk

↓ 9 callersFunctionString
(r *http.Request, key string, defVal string)
http/param/param.go:12
↓ 4 callersFunction_build
(code int, defval string, custom ...string)
http/errors/errors.go:38
↓ 1 callersFunctionConfigRouter
(r *mux.Router)
http/routes.go:11
↓ 1 callersFunctionconfigConfRoutes
(r *mux.Router)
http/routes.go:15
↓ 1 callersFunctionhandleConfig
(configFile string)
main.go:49
↓ 1 callersFunctionhandleHelp
(displayHelp bool)
main.go:42
↓ 1 callersFunctionhandleVersion
(displayVersion bool)
main.go:35
↓ 1 callersFunctionisAjax
(r *http.Request)
http/middleware/recovery.go:69
↓ 1 callersFunctionprepare
()
main.go:14
FunctionBadRequestError
400
http/errors/errors.go:24
FunctionBool
(r *http.Request, key string, defVal bool)
http/param/param.go:144
FunctionConfig
()
g/config.go:28
FunctionData
(w http.ResponseWriter, v interface{}, msg ...string)
http/render/render.go:68
FunctionError
(w http.ResponseWriter, err error)
http/render/render.go:55
FunctionExample
()
http/helper/helper.go:3
FunctionFloat64
(r *http.Request, key string, defVal float64)
http/param/param.go:112
FunctionHTML
(r *http.Request, w http.ResponseWriter, name string, htmlOpt ...render.HTMLOptions)
http/render/render.go:43
FunctionHomeIndex
(w http.ResponseWriter, r *http.Request)
handler/home_hander.go:9
FunctionInit
()
http/render/render.go:21
FunctionInit
()
http/cookie/cookie.go:11
FunctionInt
(r *http.Request, key string, defVal int)
http/param/param.go:79
FunctionInt64
(r *http.Request, key string, defVal int64)
http/param/param.go:47
FunctionInternalServerError
500
http/errors/errors.go:34
FunctionMaybePanic
(err error)
http/errors/errors.go:49
FunctionMessage
(w http.ResponseWriter, format string, args ...interface{})
http/render/render.go:64
FunctionMustBool
(r *http.Request, key string)
http/param/param.go:155
FunctionMustFloat64
(r *http.Request, key string, displayName ...string)
http/param/param.go:126
FunctionMustInt
(r *http.Request, key string, displayName ...string)
http/param/param.go:93
FunctionMustInt64
(r *http.Request, key string, displayName ...string)
http/param/param.go:61
FunctionMustString
(r *http.Request, key string, displayName ...string)
http/param/param.go:35
FunctionNewLogger
NewLogger returns a new Logger instance
http/middleware/logger.go:19
FunctionNewRecovery
NewRecovery returns a new instance of Recovery
http/middleware/recovery.go:23
FunctionNoPrivError
403
http/errors/errors.go:29
FunctionNotLoginError
401
http/errors/errors.go:19
FunctionPanic
(msg string)
http/errors/errors.go:60
FunctionParse
(cfg string)
g/config.go:34
FunctionPut
(r *http.Request, key string, val interface{})
http/render/render.go:32
FunctionReadUser
(r *http.Request)
http/cookie/cookie.go:17
FunctionRemoveUser
(w http.ResponseWriter)
http/cookie/cookie.go:47
MethodServeHTTP
(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
http/middleware/recovery.go:32
MethodServeHTTP
(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
http/middleware/logger.go:23
FunctionStart
()
http/http.go:13
FunctionText
(w http.ResponseWriter, v string, codes ...int)
http/render/render.go:47
FunctionWriteUser
(w http.ResponseWriter, example string)
http/cookie/cookie.go:27
Functioninit
()
main.go:18
Functionmain
()
main.go:31