infrastructure

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

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 GetPostgresConnection() *sql.DB

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL