config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppEnv                   string
	Port                     string
	JwtSecret                string
	RequireVerification      bool
	UnauthorizedRequestLimit int
	ShortRequestLimit        int
	LongRequestLimit         int
	LogLevel                 int

	DbHost           string
	DbPort           string
	DbName           string
	DbUser           string
	DbPassword       string
	DbSslMode        string
	DbMaxConnections int
	DbMinConnections int
}

func GetAppConfig

func GetAppConfig() Config

type PgDumpConfig

type PgDumpConfig struct {
	Dump_DbHost     string
	Dump_DbPort     int
	Dump_DbName     string
	Dump_DbUser     string
	Dump_DbPassword string
}

func GetPgDumpConfig

func GetPgDumpConfig() PgDumpConfig

type PgRestoreConfig

type PgRestoreConfig struct {
	Rest_DbHost     string
	Rest_DbPort     int
	Rest_DbName     string
	Rest_DbUser     string
	Rest_DbPassword string
	Rest_SourcePath string
}

func GetPgRestoreConfig

func GetPgRestoreConfig() PgRestoreConfig

Jump to

Keyboard shortcuts

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