settings

package
v0.0.0-...-b12e7ef Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 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 {
	Name string `mapstructure:"name" json:"name" yaml:"name"`
	Mode string `mapstructure:"mode" json:"mode" yaml:"mode"`
	Port int    `mapstructure:"port" json:"port" yaml:"port"`
}

type LogConfig

type LogConfig struct {
	Level       string `mapstructure:"level" json:"level" yaml:"level"`
	FileName    string `mapstructure:"filename" json:"filename" yaml:"filename"`
	GinFileName string `mapstructure:"ginFilename" json:"ginFilename" yaml:"ginFilename"`
	MaxSize     int    `mapstructure:"max_size" json:"max_size" yaml:"max_size"`
	MaxAge      int    `mapstructure:"mode" json:"mode" yaml:"mode"`
	MaxBackUps  int    `mapstructure:"max_age" json:"max_age" yaml:"max_age"`
}

type MysqlConfig

type MysqlConfig struct {
	Host     string `mapstructure:"host" json:"host" yaml:"host"`
	Port     int    `mapstructure:"port" json:"port" yaml:"port"`
	User     string `mapstructure:"user" json:"user" yaml:"user"`
	PassWord string `mapstructure:"password" json:"password" yaml:"password"`
	DBName   string `mapstructure:"dbname" json:"dbname" yaml:"dbname"`
}

type RedisConfig

type RedisConfig struct {
	Host     string `mapstructure:"host" json:"host" yaml:"host"`
	Port     int    `mapstructure:"port" json:"port" yaml:"port"`
	PassWord string `mapstructure:"password" json:"password" yaml:"password"`
	DB       int    `mapstructure:"db" json:"db" yaml:"db"`
}

type WebConfig

type WebConfig struct {
	AppConfig   AppConfig   `mapstructure:"app" json:"app" yaml:"app"`
	LogConfig   LogConfig   `mapstructure:"log" json:"log" yaml:"log"`
	MysqlConfig MysqlConfig `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
	RedisConfig RedisConfig `mapstructure:"redis" json:"redis" yaml:"redis"`
}

Jump to

Keyboard shortcuts

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