Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Env string `mapstructure:"env" json:"env" yaml:"env"` Port string `mapstructure:"port" json:"port" yaml:"port"` AppName string `mapstructure:"app_name" json:"app_name" yaml:"app_name"` AppUrl string `mapstructure:"app_url" json:"app_url" yaml:"app_url"` }
App 配置apps对应的结构体
type Configuration ¶
type Configuration struct { App App `mapstructure:"app" json:"app" yaml:"app"` Log Log `mapstructure:"log" json:"log" yaml:"log"` Database []*plugins.Database `mapstructure:"database" json:"database" yaml:"database"` Redis *plugins.Redis `mapstructure:"redis" json:"redis" yaml:"redis"` Minio *plugins.Minio `mapstructure:"minio" json:"minio" yaml:"minio"` Cos *plugins.Cos `mapstructure:"cos" json:"cos" yaml:"cos"` Oss *plugins.Oss `mapstructure:"oss" json:"oss" yaml:"oss"` Local *plugins.Local `mapstructure:"local" json:"local" yaml:"local"` }
Configuration 配置文件中所有字段对应的结构体
type Log ¶
type Log struct { Level string `mapstructure:"level" json:"level" yaml:"level"` RootDir string `mapstructure:"root_dir" json:"root_dir" yaml:"root_dir"` Filename string `mapstructure:"filename" json:"filename" yaml:"filename"` Format string `mapstructure:"format" json:"format" yaml:"format"` ShowLine bool `mapstructure:"show_line" json:"show_line" yaml:"show_line"` MaxBackups int `mapstructure:"max_backups" json:"max_backups" yaml:"max_backups"` MaxSize int `mapstructure:"max_size" json:"max_size" yaml:"max_size"` // MB MaxAge int `mapstructure:"max_age" json:"max_age" yaml:"max_age"` // day Compress bool `mapstructure:"compress" json:"compress" yaml:"compress"` EnableFile bool `mapstructure:"enable_file" json:"enable_file" yaml:"enable_file"` }
Log 日志配置
Click to show internal directories.
Click to hide internal directories.