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) GetPath ¶ added in v0.4.69
func (ce *FileRender) GetPath() 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"`
}
Click to show internal directories.
Click to hide internal directories.