Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code-tutorials/golang-webapp
/ functions
Functions
31 in github.com/code-tutorials/golang-webapp
⨍
Functions
31
◇
Types & classes
2
↓ 2 callers
Method
GetId
()
models/user.go:42
↓ 2 callers
Function
GetUserById
(id int64)
models/user.go:68
↓ 2 callers
Function
queryUpdates
(key string)
models/update.go:45
↓ 1 callers
Method
Authenticate
(password string)
models/user.go:56
↓ 1 callers
Method
GetHash
()
models/user.go:51
↓ 1 callers
Function
GetUserByUsername
(username string)
models/user.go:72
↓ 1 callers
Function
NewUpdate
(userId int64, body string)
models/update.go:12
↓ 1 callers
Function
NewUser
(username string, hash []byte)
models/user.go:20
Function
AuthRequired
(handler http.HandlerFunc)
middleware/middleware.go:8
Function
AuthenticateUser
(username, password string)
models/user.go:82
Function
ExecuteTemplate
(w http.ResponseWriter, tmpl string, data interface{})
utils/templates.go:14
Function
GetAllUpdates
()
models/update.go:61
Method
GetBody
()
models/update.go:31
Function
GetUpdates
(userId int64)
models/update.go:65
Method
GetUser
()
models/update.go:36
Method
GetUsername
()
models/user.go:46
Function
Init
()
models/db.go:9
Function
InternalServerError
(w http.ResponseWriter)
utils/errors.go:7
Function
LoadTemplates
(pattern string)
utils/templates.go:10
Function
NewRouter
()
routes/routes.go:12
Function
PostUpdate
(userId int64, body string)
models/update.go:70
Function
RegisterUser
(username, password string)
models/user.go:90
Function
indexGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:28
Function
indexPostHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:45
Function
loginGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:99
Function
loginPostHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:103
Function
logoutGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:130
Function
main
()
main.go:10
Function
registerGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:137
Function
registerPostHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:141
Function
userGetHandler
(w http.ResponseWriter, r *http.Request)
routes/routes.go:63