Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Environment = &EnvironmentModel{}
Functions ¶
This section is empty.
Types ¶
type Apollo ¶
type Apollo struct { AppId string `toml:"app_id" json:"app_id"` Cluster string `toml:"cluster" json:"cluster"` Ip string `toml:"ip" json:"ip"` NamespaceName string `toml:"namespace_name" json:"namespace_name"` IsBackupConfig bool `toml:"is_backup_config" json:"is_backup_config"` Secret string `toml:"secret" json:"secret"` }
type ConfigRender ¶
type EnvironmentModel ¶
type FileRender ¶
func (*FileRender) GetEnv ¶
func (ce *FileRender) GetEnv() string
func (*FileRender) GetFilePath ¶
func (ce *FileRender) GetFilePath() string
func (*FileRender) LoadFile ¶
func (ce *FileRender) LoadFile() string
func (*FileRender) Render ¶
func (ce *FileRender) Render() string
func (*FileRender) SetConfigPath ¶
func (ce *FileRender) SetConfigPath(path string)
func (*FileRender) SetEnv ¶
func (ce *FileRender) SetEnv(env string)
type Gin ¶
type Gin struct { Port int64 `toml:"port"` // 端口号 Mode string `toml:"release"` // 模式 debug,release,test Pprof bool `toml:"pprof"` PprofSecret string `toml:"pprof_secret"` BasePath string `toml:"base_path"` // 请求根路径 Session string `toml:"session"` SessionId string `toml:"session_id"` SessionFile string `toml:"session_file"` SessionSecret string `toml:"session_secret"` }
type Mysql ¶
type Mysql struct { TimeZone string `toml:"time_zone"` // 时区 Username string `toml:"username"` // 用户名 Password string `toml:"password"` // 密码 Addr string `toml:"addr"` // 地址 Database string `toml:"database"` // 数据库名 ShowSql bool `toml:"show_sql"` // 打印sql MaxIdleConn int `toml:"max_idle_conn"` // 最大闲置链接数 MaxOpenConn int `toml:"max_open_conn"` // 最大活跃连接数 Timeout int64 `toml:"timeout"` // 请求超时时间(单位毫秒) }
Click to show internal directories.
Click to hide internal directories.