Documentation ¶
Index ¶
Constants ¶
View Source
const NAMESPACE = "LOGISTICS_APP"
Variables ¶
This section is empty.
Functions ¶
func InitMySQLDatabase ¶
func InitMySQLDatabase(cfg Configuration) *gorm.DB
Types ¶
type Configuration ¶
type Configuration struct { LoggerLevel string `envconfig:"LOG_LEVEL" default:"error"` Server Server `envconfig:"SERVER"` Database Database `envconfig:"DATABASE"` App App `envconfig:"APP"` MigrateConfig MigrateConfig `envconfig:"MIGRATE"` JWT JWTConfig `envconfig:"JWT"` }
var (
AppConfig Configuration
)
func Get ¶
func Get() Configuration
type MigrateConfig ¶
type MigrateConfig struct {
AutoMigrate bool `envconfig:"AUTO" default:"false"`
}
Click to show internal directories.
Click to hide internal directories.