Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClosePostgresConnection ¶
func ClosePostgresConnection()
func ErrorHandlerMiddleware ¶
func ErrorHandlerMiddleware() gin.HandlerFunc
func GetPostgresConnection ¶
func GetValidator ¶
func GetValidator() *validator.Validate
Types ¶
type Environment ¶
type Environment struct { DbConnectionString string `split_words:"true" default:"postgres://postgres:postgres@localhost:5432/codelabs?sslmode=disable"` DbMigrationsPath string `split_words:"true" default:"file://sql/migrations"` }
func GetEnvironment ¶
func GetEnvironment() *Environment
Click to show internal directories.
Click to hide internal directories.