MCPcopy Create free account

hub / github.com/bmdavis419/svelte-go-testing / functions

Functions43 in github.com/bmdavis419/svelte-go-testing

↓ 6 callersMethodGetSession
(session string)
go-fiber-server/auth/session.go:82
↓ 5 callersFunctionverifyAuthJWT
(token: string)
svelte-todos-fullstack/src/lib/server/jwt.ts:19
↓ 2 callersFunctioncreateAuthJWT
(data: JWTPayload)
svelte-todos-fullstack/src/lib/server/jwt.ts:12
↓ 1 callersMethodCreateNewTodo
(data NewTodoInput)
go-fiber-server/storage/todos.go:28
↓ 1 callersMethodCreateNewUser
(data NewUser)
go-fiber-server/storage/users.go:22
↓ 1 callersMethodGenerateSession
(data UserSession)
go-fiber-server/auth/session.go:38
↓ 1 callersMethodGetAllTodos
(userId int)
go-fiber-server/storage/todos.go:42
↓ 1 callersMethodGetOneTodo
(todoId int)
go-fiber-server/storage/todos.go:51
↓ 1 callersMethodSignIn
(email, password string)
go-fiber-server/auth/session.go:48
↓ 1 callersMethodSignOut
(sessionId string)
go-fiber-server/auth/session.go:78
MethodCompleteTodo
(todoId int)
go-fiber-server/storage/todos.go:60
MethodCompleteTodo
CompleteTodo godoc @Summary Mark a todo as completed @Tags todos @Accept json @Produce json @Param id path int true "Todo ID" @Security ApiKeyAuth
go-fiber-server/handlers/todos.go:187
FunctionCreateMySqlConnection
(env config.EnvVars)
go-fiber-server/db/mysql.go:8
FunctionCreatePostgresConnection
(lc fx.Lifecycle)
go-fiber-server/db/postgres.go:13
FunctionCreateRedisConnection
(env config.EnvVars)
go-fiber-server/db/redis.go:8
MethodCreateTodo
CreateTodo godoc @Summary Create a new Todo @Tags todos @Accept json @Produce json @Param todo body createTodoRequest true "The todo's info" @Security
go-fiber-server/handlers/todos.go:38
MethodDeleteTodo
(todoId int)
go-fiber-server/storage/todos.go:65
MethodDeleteTodo
DeleteTodo godoc @Summary Delete a Todo @Tags todos @Accept json @Produce json @Param id path int true "Todo ID" @Security ApiKeyAuth @Success 200
go-fiber-server/handlers/todos.go:234
MethodFetchTodo
FetchTodo godoc @Summary Fetch one of a user's todos @Tags todos @Accept json @Produce json @Param id path int true "Todo ID" @Security ApiKeyAuth
go-fiber-server/handlers/todos.go:92
MethodFetchTodos
FetchTodos godoc @Summary Fetch all of a user's todos @Tags todos @Accept json @Produce json @Security ApiKeyAuth @Success 200 {object} fetchTodosResp
go-fiber-server/handlers/todos.go:143
MethodGetUserInfo
GetUserInfo godoc @Summary Get the user's info @Tags users @Accept json @Produce json @Security ApiKeyAuth @Success 200 {object} auth.UserSession @Rou
go-fiber-server/handlers/users.go:63
FunctionLoadEnv
this is cringe in its current state but it works
go-fiber-server/config/env.go:18
FunctionNewSessionManager
(rdb *redis.Client, conn *sqlx.DB)
go-fiber-server/auth/session.go:19
FunctionNewTodoHandler
(storage *storage.TodoStorage, session *auth.SessionManager)
go-fiber-server/handlers/todos.go:16
FunctionNewTodoStorage
(conn *sqlx.DB)
go-fiber-server/storage/todos.go:18
FunctionNewUserHandler
(storage *storage.UserStorage, sessionManager *auth.SessionManager)
go-fiber-server/handlers/users.go:18
FunctionNewUserStorage
(conn *sqlx.DB)
go-fiber-server/storage/users.go:11
MethodSignInUser
SignInUser godoc @Summary Sign in a user @Tags users @Accept json @Produce json @Param user body signInRequestBody true "The user's email and password
go-fiber-server/handlers/users.go:98
MethodSignOutUser
SignOutUser godoc @Summary Sign out a user @Tags users @Accept json @Produce json @Success 200 {object} SuccessResponse @Router /users/sign-
go-fiber-server/handlers/users.go:34
MethodSignUpUser
SignUpUser godoc @Summary Sign up a user @Tags users @Accept json @Produce json @Param user body userRequestBody true "The user's first name, last nam
go-fiber-server/handlers/users.go:147
Functioninit
()
go-fiber-server/docs/docs.go:478
Functionload
({ cookies, fetch })
svelte-todos/src/routes/+page.server.ts:4
Functionload
(event)
svelte-todos/src/routes/sign-up/+page.server.ts:4
Functionload
(event)
svelte-todos/src/routes/sign-out/+page.server.ts:4
Functionload
(event)
svelte-todos/src/routes/me/+page.server.ts:4
Functionload
(event)
svelte-todos/src/routes/sign-in/+page.server.ts:4
Functionload
({ cookies, fetch })
svelte-todos-fullstack/src/routes/+page.server.ts:7
Functionload
(event)
svelte-todos-fullstack/src/routes/sign-up/+page.server.ts:11
Functionload
(event)
svelte-todos-fullstack/src/routes/sign-out/+page.server.ts:3
Functionload
(event)
svelte-todos-fullstack/src/routes/me/+page.server.ts:4
Functionload
(event)
svelte-todos-fullstack/src/routes/sign-in/+page.server.ts:12
Functionmain
()
go-fiber-server/main.go:74
FunctionnewFiberServer
@title Go Svelte Todos API @version 1.0 @description This is a basic CRUD api with authentication, written by @bmdavis419. @securityDefinit
go-fiber-server/main.go:31