Documentation ¶
Index ¶
- func CreateAlertChan() chan template.Alert
- func InitDB() *gorm.DB
- func InitGinServer(m []gin.HandlerFunc, webHookHdl *webhookApi.WebHookHandler) *gin.Engine
- func InitLogger() *zap.Logger
- func InitMiddlewares(l *zap.Logger) []gin.HandlerFunc
- func InitWebHookCache(logger *zap.Logger, webHookCache cache.WebhookCache, ...) func()
- type Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAlertChan ¶
func InitGinServer ¶
func InitGinServer(m []gin.HandlerFunc, webHookHdl *webhookApi.WebHookHandler) *gin.Engine
InitGinServer 初始化web服务
func InitWebHookCache ¶
func InitWebHookCache(logger *zap.Logger, webHookCache cache.WebhookCache, webHookConsumer consumer.WebhookConsumer) func()
Types ¶
Click to show internal directories.
Click to hide internal directories.