configs

package
v0.0.0-...-4ac03a4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupDatabase

func SetupDatabase(ctx context.Context, config *Conf) *pgxpool.Pool

Types

type Conf

type Conf struct {
	DatabaseURL        string        `mapstructure:"DATABASE_URL"`
	DatabaseMaxConn    int32         `mapstructure:"DATABASE_MAX_CONN"`
	DatabaseMinConn    int32         `mapstructure:"DATABASE_MIN_CONN"`
	WebServerPort      string        `mapstructure:"WEB_SERVER_PORT"`
	JWTSecretKey       string        `mapstructure:"JWT_SECRET_KEY"`
	SessionMaxDuration time.Duration `mapstructure:"MAX_SESSION_MINUTES"`
}

Jump to

Keyboard shortcuts

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