Documentation
¶
Index ¶
- func Eureka() *eureka.Client
- func GetAtomicLevel() zap.AtomicLevel
- func InitConf(configPath string, debugMode bool)
- func LoadConfig(configPath string, configStruct interface{}, valid bool) error
- func Logger() *zap.SugaredLogger
- func NewEureka()
- func NewLogger()
- func NewMySql()
- func NewRabbit()
- func NewRedis()
- func Rabbit() *rabbit.MqClient
- func Redis() *redis.Client
- type AppConfig
- type DatabaseConfig
- type Log
- type RabbitConfig
- type RedisConfig
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAtomicLevel ¶
func GetAtomicLevel() zap.AtomicLevel
func LoadConfig ¶
func Logger ¶
func Logger() *zap.SugaredLogger
Types ¶
type AppConfig ¶
type AppConfig struct { RunMode bool AppName string `yaml:"application"` Server ServerConfig Database DatabaseConfig Redis RedisConfig Rabbit RabbitConfig Log Log }
AppConfig 服务端配置数据结构
func GetAppConfig ¶
func GetAppConfig() *AppConfig
type DatabaseConfig ¶
type RabbitConfig ¶
type ServerConfig ¶
func GetServerConfig ¶
func GetServerConfig() *ServerConfig
Click to show internal directories.
Click to hide internal directories.