config

package
v0.0.0-...-f8764fd Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Env            string
	DBConfig       DBConfig
	Port           string
	AllowedOrigins []string
	AllowedHeaders []string
	GinMode        string
}

AppConfig application config

type DBConfig

type DBConfig struct {
	Host        string
	Port        string `default:"5432"`
	User        string
	Pass        string
	Name        string
	SSLMode     string `default:"disable"`
	AutoMigrate bool
}

DBConfig database connection config

Jump to

Keyboard shortcuts

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