Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bmdavis419/svelte-go-testing
/ functions
Functions
43 in github.com/bmdavis419/svelte-go-testing
⨍
Functions
43
◇
Types & classes
20
↓ 6 callers
Method
GetSession
(session string)
go-fiber-server/auth/session.go:82
↓ 5 callers
Function
verifyAuthJWT
(token: string)
svelte-todos-fullstack/src/lib/server/jwt.ts:19
↓ 2 callers
Function
createAuthJWT
(data: JWTPayload)
svelte-todos-fullstack/src/lib/server/jwt.ts:12
↓ 1 callers
Method
CreateNewTodo
(data NewTodoInput)
go-fiber-server/storage/todos.go:28
↓ 1 callers
Method
CreateNewUser
(data NewUser)
go-fiber-server/storage/users.go:22
↓ 1 callers
Method
GenerateSession
(data UserSession)
go-fiber-server/auth/session.go:38
↓ 1 callers
Method
GetAllTodos
(userId int)
go-fiber-server/storage/todos.go:42
↓ 1 callers
Method
GetOneTodo
(todoId int)
go-fiber-server/storage/todos.go:51
↓ 1 callers
Method
SignIn
(email, password string)
go-fiber-server/auth/session.go:48
↓ 1 callers
Method
SignOut
(sessionId string)
go-fiber-server/auth/session.go:78
Method
CompleteTodo
(todoId int)
go-fiber-server/storage/todos.go:60
Method
CompleteTodo
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
Function
CreateMySqlConnection
(env config.EnvVars)
go-fiber-server/db/mysql.go:8
Function
CreatePostgresConnection
(lc fx.Lifecycle)
go-fiber-server/db/postgres.go:13
Function
CreateRedisConnection
(env config.EnvVars)
go-fiber-server/db/redis.go:8
Method
CreateTodo
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
Method
DeleteTodo
(todoId int)
go-fiber-server/storage/todos.go:65
Method
DeleteTodo
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
Method
FetchTodo
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
Method
FetchTodos
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
Method
GetUserInfo
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
Function
LoadEnv
this is cringe in its current state but it works
go-fiber-server/config/env.go:18
Function
NewSessionManager
(rdb *redis.Client, conn *sqlx.DB)
go-fiber-server/auth/session.go:19
Function
NewTodoHandler
(storage *storage.TodoStorage, session *auth.SessionManager)
go-fiber-server/handlers/todos.go:16
Function
NewTodoStorage
(conn *sqlx.DB)
go-fiber-server/storage/todos.go:18
Function
NewUserHandler
(storage *storage.UserStorage, sessionManager *auth.SessionManager)
go-fiber-server/handlers/users.go:18
Function
NewUserStorage
(conn *sqlx.DB)
go-fiber-server/storage/users.go:11
Method
SignInUser
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
Method
SignOutUser
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
Method
SignUpUser
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
Function
init
()
go-fiber-server/docs/docs.go:478
Function
load
({ cookies, fetch })
svelte-todos/src/routes/+page.server.ts:4
Function
load
(event)
svelte-todos/src/routes/sign-up/+page.server.ts:4
Function
load
(event)
svelte-todos/src/routes/sign-out/+page.server.ts:4
Function
load
(event)
svelte-todos/src/routes/me/+page.server.ts:4
Function
load
(event)
svelte-todos/src/routes/sign-in/+page.server.ts:4
Function
load
({ cookies, fetch })
svelte-todos-fullstack/src/routes/+page.server.ts:7
Function
load
(event)
svelte-todos-fullstack/src/routes/sign-up/+page.server.ts:11
Function
load
(event)
svelte-todos-fullstack/src/routes/sign-out/+page.server.ts:3
Function
load
(event)
svelte-todos-fullstack/src/routes/me/+page.server.ts:4
Function
load
(event)
svelte-todos-fullstack/src/routes/sign-in/+page.server.ts:12
Function
main
()
go-fiber-server/main.go:74
Function
newFiberServer
@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