Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Default DefaultOptions `mapstructure:"default"` Mysql MysqlOptions `mapstructure:"mysql"` Log LogConfig `mapstructure:"log"` }
var SysConfig *Config
type DefaultOptions ¶
type DefaultOptions struct { PodLogTailLine string `mapstructure:"podLogTailLine"` ListenAddr string `mapstructure:"listenAddr"` WebSocketListenAddr string `mapstructure:"webSocketListenAddr"` JWTSecret string `mapstructure:"JWTSecret"` ExpireTime int64 `mapstructure:"expireTime"` KubernetesConfigFile string `mapstructure:"kubernetesConfigFile"` }
type MysqlOptions ¶
type MysqlOptions struct { Host string `mapstructure:"host"` User string `mapstructure:"user"` Password string `mapstructure:"password"` Port string `mapstructure:"port"` Name string `mapstructure:"name"` MaxOpenConns int `mapstructure:"maxOpenConns"` MaxLifetime int `mapstructure:"maxLifetime"` MaxIdleConns int `mapstructure:"maxIdleConns"` }
Click to show internal directories.
Click to hide internal directories.