conf

package
v0.0.0-...-c5159e0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf *appConf
)

Functions

func InitConfig

func InitConfig()

Types

type DbConf

type DbConf struct {
	Driver       string `mapstructure:"driver"`
	Dsn          string `mapstructure:"dsn"`
	MaxIdleCount int    `mapstructure:"maxIdleCount"`
	MaxOpenCount int    `mapstructure:"maxOpenCount"`
}

type LogConf

type LogConf struct {
	Debug     bool `mapstructure:"debug"`
	MaxSize   int  `mapstructure:"maxSize"`
	MaxAge    int  `mapstructure:"maxAge"`
	MaxBackup int  `mapstructure:"maxBackup"`
	LocalTime bool `mapstructure:"localTime"`
	Compress  bool `mapstructure:"compress"`
}

type ServerConf

type ServerConf struct {
	GinMode string `mapstructure:"ginMode"`
	Port    string `mapstructure:"port"`
}

Jump to

Keyboard shortcuts

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