Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Rdb *redis.Client Ctx = context.Background() )
Functions ¶
func InitLogger ¶
func InitLogger(c Conf) *zap.SugaredLogger
Types ¶
type Conf ¶
type Conf struct { App SectionApp `ini:"app"` Zap SectionZap `ini:"zap"` Gin SectionGin `ini:"gin"` Core SectionCore `ini:"core"` Log SectionLog `ini:"log"` Redis SectionRedis `ini:"redis"` DingTalk SectionDingTalk `int:"ding_talk"` ConsumerQueue SectionConsumerQueue `ini:"consumer_queue"` }
func LoadConfig ¶
type SectionApp ¶
type SectionConsumerQueue ¶
type SectionCore ¶
type SectionDingTalk ¶
type SectionGin ¶
type SectionLog ¶
type SectionRedis ¶
Click to show internal directories.
Click to hide internal directories.