Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bmdavis419/tapir-app
/ functions
Functions
15 in github.com/bmdavis419/tapir-app
⨍
Functions
15
◇
Types & classes
6
↓ 1 callers
Function
AddTodoRoutes
(app *fiber.App, controller *TodoController)
internal/todo/router.go:5
↓ 1 callers
Function
BootstrapMongo
(uri, dbName string, timeout time.Duration)
internal/storage/mongo.go:11
↓ 1 callers
Function
CloseMongo
(db *mongo.Database)
internal/storage/mongo.go:24
↓ 1 callers
Function
Gracefully
()
pkg/shutdown/gracefully.go:9
↓ 1 callers
Function
LoadConfig
()
config/viper.go:16
↓ 1 callers
Function
NewTodoController
(storage *TodoStorage)
internal/todo/controller.go:11
↓ 1 callers
Function
NewTodoStorage
(db *mongo.Database)
internal/todo/storage.go:23
↓ 1 callers
Function
buildServer
(env config.EnvVars)
cmd/http/main.go:73
↓ 1 callers
Method
createTodo
(title, description string, completed bool, ctx context.Context)
internal/todo/storage.go:29
↓ 1 callers
Method
getAllTodos
(ctx context.Context)
internal/todo/storage.go:41
↓ 1 callers
Function
run
(env config.EnvVars)
cmd/http/main.go:55
Method
create
@Summary Create one todo. @Description creates one todo. @Tags todos @Accept */* @Produce json @Param todo body createTodoRequest true "Todo to create
internal/todo/controller.go:34
Method
getAll
@Summary Get all todos. @Description fetch every todo available. @Tags todos @Accept */* @Produce json @Success 200 {object} []todoDB @Router /todos [
internal/todo/controller.go:63
Function
init
()
docs/docs.go:135
Function
main
@title Tapir App Template @version 2.0 @description An example template of a Golang backend API using Fiber and MongoDB @contact.name Ben Davis @licen
cmd/http/main.go:25