manager

package
v0.0.0-...-402b80f Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainDB *gorm.DB
View Source
var ServiceHealth *internalTypes.Health

Functions

func InitManagerDB

func InitManagerDB()

func LoadManagerSettings

func LoadManagerSettings()

Types

type APISettings

type APISettings struct {
	PaginationDefaultLimit uint `env:"PAGINATION_DEFAULT_LIMIT" envDefault:"50"`
}

type MainSettings

type MainSettings struct {
	DBFilePath  string `env:"DB_FILE_PATH,required"`
	ServerPort  int16  `env:"SERVER_PORT" envDefault:"8080"`
	ServerHost  string `env:"SERVER_HOST" envDefault:"localhost"`
	Environment string `env:"ENVIRONMENT" envDefault:"dev"`
	APISettings
}
var GlobalSettings *MainSettings

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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