di

package
v0.0.0-...-513d4e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAlertChan

func CreateAlertChan() chan template.Alert

func InitDB

func InitDB() *gorm.DB

InitDB 初始化数据库

func InitGinServer

func InitGinServer(m []gin.HandlerFunc, webHookHdl *webhookApi.WebHookHandler) *gin.Engine

InitGinServer 初始化web服务

func InitLogger

func InitLogger() *zap.Logger

InitLogger 将日志输出到控制台

func InitMiddlewares

func InitMiddlewares(l *zap.Logger) []gin.HandlerFunc

InitMiddlewares 初始化中间件

func InitWebHookCache

func InitWebHookCache(logger *zap.Logger, webHookCache cache.WebhookCache, webHookConsumer consumer.WebhookConsumer) func()

Types

type Cmd

type Cmd struct {
	Server *gin.Engine
	Start  func()
}

func InitWebServer

func InitWebServer() *Cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL