MCPcopy Create free account

hub / github.com/anthdm/gobank / functions

Functions38 in github.com/anthdm/gobank

↓ 9 callersFunctionWriteJSON
(w http.ResponseWriter, status int, v any)
api.go:155
↓ 5 callersFunctionpermissionDenied
(w http.ResponseWriter)
api.go:174
↓ 4 callersFunctionmakeHTTPHandleFunc
(f apiFunc)
api.go:240
↓ 3 callersFunctionNewAccount
(firstName, lastName, password string)
types.go:45
↓ 3 callersFunctiongetID
(r *http.Request)
api.go:248
↓ 3 callersFunctionscanIntoAccount
(rows *sql.Rows)
storage.go:132
↓ 2 callersMethodCreateAccount
(*Account)
storage.go:11
↓ 2 callersMethodGetAccountByID
(int)
storage.go:15
↓ 1 callersMethodDeleteAccount
(int)
storage.go:12
↓ 1 callersMethodGetAccountByNumber
(int)
storage.go:16
↓ 1 callersMethodGetAccounts
()
storage.go:14
↓ 1 callersMethodInit
()
storage.go:39
↓ 1 callersFunctionNewAPIServer
(listenAddr string, store Storage)
api.go:20
↓ 1 callersFunctionNewPostgresStore
()
storage.go:23
↓ 1 callersMethodRun
()
api.go:27
↓ 1 callersMethodValidPassword
(pw string)
types.go:41
↓ 1 callersMethodcreateAccountTable
()
storage.go:43
↓ 1 callersFunctioncreateJWT
(account *Account)
api.go:162
↓ 1 callersMethodhandleCreateAccount
(w http.ResponseWriter, r *http.Request)
api.go:115
↓ 1 callersMethodhandleDeleteAccount
(w http.ResponseWriter, r *http.Request)
api.go:132
↓ 1 callersMethodhandleGetAccount
(w http.ResponseWriter, r *http.Request)
api.go:84
↓ 1 callersFunctionseedAccount
(store Storage, fname, lname, pw string)
main.go:9
↓ 1 callersFunctionseedAccounts
(s Storage)
main.go:24
↓ 1 callersFunctionvalidateJWT
(tokenString string)
api.go:220
↓ 1 callersFunctionwithJWTAuth
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50TnVtYmVyIjo0OTgwODEsImV4cGlyZXNBdCI6MTUwMDB9.TdQ907o9yhUI2KU0TngrqO-xbfNgHAfZI6Jngia15UE
api.go:180
MethodCreateAccount
(acc *Account)
storage.go:58
MethodDeleteAccount
(id int)
storage.go:83
MethodGetAccountByID
(id int)
storage.go:101
MethodGetAccountByNumber
(number int)
storage.go:88
MethodGetAccounts
()
storage.go:114
FunctionTestNewAccount
(t *testing.T)
types_test.go:10
MethodUpdateAccount
(*Account)
storage.go:13
MethodUpdateAccount
(*Account)
storage.go:79
MethodhandleAccount
(w http.ResponseWriter, r *http.Request)
api.go:73
MethodhandleGetAccountByID
(w http.ResponseWriter, r *http.Request)
api.go:93
MethodhandleLogin
498081
api.go:41
MethodhandleTransfer
(w http.ResponseWriter, r *http.Request)
api.go:145
Functionmain
()
main.go:28