MCPcopy Create free account

hub / github.com/code-tutorials/golang-webapp / functions

Functions31 in github.com/code-tutorials/golang-webapp

↓ 2 callersMethodGetId
()
models/user.go:42
↓ 2 callersFunctionGetUserById
(id int64)
models/user.go:68
↓ 2 callersFunctionqueryUpdates
(key string)
models/update.go:45
↓ 1 callersMethodAuthenticate
(password string)
models/user.go:56
↓ 1 callersMethodGetHash
()
models/user.go:51
↓ 1 callersFunctionGetUserByUsername
(username string)
models/user.go:72
↓ 1 callersFunctionNewUpdate
(userId int64, body string)
models/update.go:12
↓ 1 callersFunctionNewUser
(username string, hash []byte)
models/user.go:20
FunctionAuthRequired
(handler http.HandlerFunc)
middleware/middleware.go:8
FunctionAuthenticateUser
(username, password string)
models/user.go:82
FunctionExecuteTemplate
(w http.ResponseWriter, tmpl string, data interface{})
utils/templates.go:14
FunctionGetAllUpdates
()
models/update.go:61
MethodGetBody
()
models/update.go:31
FunctionGetUpdates
(userId int64)
models/update.go:65
MethodGetUser
()
models/update.go:36
MethodGetUsername
()
models/user.go:46
FunctionInit
()
models/db.go:9
FunctionInternalServerError
(w http.ResponseWriter)
utils/errors.go:7
FunctionLoadTemplates
(pattern string)
utils/templates.go:10
FunctionNewRouter
()
routes/routes.go:12
FunctionPostUpdate
(userId int64, body string)
models/update.go:70
FunctionRegisterUser
(username, password string)
models/user.go:90
FunctionindexGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:28
FunctionindexPostHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:45
FunctionloginGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:99
FunctionloginPostHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:103
FunctionlogoutGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:130
Functionmain
()
main.go:10
FunctionregisterGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:137
FunctionregisterPostHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:141
FunctionuserGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:63