Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EwanValentine/api-starter
/ functions
Functions
10 in github.com/EwanValentine/api-starter
⨍
Functions
10
◇
Types & classes
6
↓ 1 callers
Function
Init
Init - Bootstrap runtime options
main.go:18
Method
BeforeCreate
BeforeCreate - Lifecycle callback - Generate UUID before persisting
models/thing.go:37
Function
DB
DB - fetch instance of postgres session
drivers/datastore.go:9
Method
FindAll
FindAll - Handler to find all the things
handlers/thing_handler.go:22
Method
FindAll
FindAll - Find all of the things
models/thing.go:43
Method
Insert
Insert - Handler to insert a thing
handlers/thing_handler.go:39
Method
Insert
Insert - Create a thing
models/thing.go:56
Function
NewThingHandler
NewThingHandler - Creates new instance of ThingHandler
handlers/thing_handler.go:15
Function
NewThingRepository
NewThingRepository - Create a new instance of `ThingRepository` database instance injected
models/thing.go:15
Function
main
()
main.go:37