Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthdm/gobank
/ functions
Functions
38 in github.com/anthdm/gobank
⨍
Functions
38
◇
Types & classes
10
↓ 9 callers
Function
WriteJSON
(w http.ResponseWriter, status int, v any)
api.go:155
↓ 5 callers
Function
permissionDenied
(w http.ResponseWriter)
api.go:174
↓ 4 callers
Function
makeHTTPHandleFunc
(f apiFunc)
api.go:240
↓ 3 callers
Function
NewAccount
(firstName, lastName, password string)
types.go:45
↓ 3 callers
Function
getID
(r *http.Request)
api.go:248
↓ 3 callers
Function
scanIntoAccount
(rows *sql.Rows)
storage.go:132
↓ 2 callers
Method
CreateAccount
(*Account)
storage.go:11
↓ 2 callers
Method
GetAccountByID
(int)
storage.go:15
↓ 1 callers
Method
DeleteAccount
(int)
storage.go:12
↓ 1 callers
Method
GetAccountByNumber
(int)
storage.go:16
↓ 1 callers
Method
GetAccounts
()
storage.go:14
↓ 1 callers
Method
Init
()
storage.go:39
↓ 1 callers
Function
NewAPIServer
(listenAddr string, store Storage)
api.go:20
↓ 1 callers
Function
NewPostgresStore
()
storage.go:23
↓ 1 callers
Method
Run
()
api.go:27
↓ 1 callers
Method
ValidPassword
(pw string)
types.go:41
↓ 1 callers
Method
createAccountTable
()
storage.go:43
↓ 1 callers
Function
createJWT
(account *Account)
api.go:162
↓ 1 callers
Method
handleCreateAccount
(w http.ResponseWriter, r *http.Request)
api.go:115
↓ 1 callers
Method
handleDeleteAccount
(w http.ResponseWriter, r *http.Request)
api.go:132
↓ 1 callers
Method
handleGetAccount
(w http.ResponseWriter, r *http.Request)
api.go:84
↓ 1 callers
Function
seedAccount
(store Storage, fname, lname, pw string)
main.go:9
↓ 1 callers
Function
seedAccounts
(s Storage)
main.go:24
↓ 1 callers
Function
validateJWT
(tokenString string)
api.go:220
↓ 1 callers
Function
withJWTAuth
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50TnVtYmVyIjo0OTgwODEsImV4cGlyZXNBdCI6MTUwMDB9.TdQ907o9yhUI2KU0TngrqO-xbfNgHAfZI6Jngia15UE
api.go:180
Method
CreateAccount
(acc *Account)
storage.go:58
Method
DeleteAccount
(id int)
storage.go:83
Method
GetAccountByID
(id int)
storage.go:101
Method
GetAccountByNumber
(number int)
storage.go:88
Method
GetAccounts
()
storage.go:114
Function
TestNewAccount
(t *testing.T)
types_test.go:10
Method
UpdateAccount
(*Account)
storage.go:13
Method
UpdateAccount
(*Account)
storage.go:79
Method
handleAccount
(w http.ResponseWriter, r *http.Request)
api.go:73
Method
handleGetAccountByID
(w http.ResponseWriter, r *http.Request)
api.go:93
Method
handleLogin
498081
api.go:41
Method
handleTransfer
(w http.ResponseWriter, r *http.Request)
api.go:145
Function
main
()
main.go:28