Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Database ¶
Database migrates the database and then returns the database connection.
func LoadRoutes ¶
LoadRoutes will load the routes for the endpoints.
func Middleware ¶
Middleware wraps the router with middleware and returns a http.Handler.
Types ¶
type Settings ¶
type Settings struct { Port int `env:"API_PORT" default:"8080"` Secret string `env:"API_SECRET" default:"TA8tALZAvLVLo4ToI44xF/nF6IyrRNOR6HSfpno/81M="` SessionTimeout int `env:"API_SESSION_TIMEOUT" default:"480"` // 480 min = 8 hours. }
Settings holds the variables for the application and the defaults.
Click to show internal directories.
Click to hide internal directories.