Documentation ¶
Index ¶
- func GinMiddlewares(cmd redis.Cmdable) []gin.HandlerFunc
- func InitConsumers(c1 *event.UserActivityEventConsumer) []event.Consumer
- func InitDB() *gorm.DB
- func InitLogger() logger.Logger
- func InitPrometheusService(sms sms.Service) *prometheus.Decorator
- func InitRedis() redis.Cmdable
- func InitSMSService() sms.Service
- func InitSaramaClient() sarama.Client
- func InitSyncProducer(c sarama.Client) sarama.SyncProducer
- func InitWebServer(middlewares []gin.HandlerFunc, userHandler *web.UserHandler, ...) *gin.Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinMiddlewares ¶
func GinMiddlewares(cmd redis.Cmdable) []gin.HandlerFunc
func InitConsumers ¶
func InitConsumers(c1 *event.UserActivityEventConsumer) []event.Consumer
func InitLogger ¶
func InitPrometheusService ¶
func InitPrometheusService(sms sms.Service) *prometheus.Decorator
func InitSMSService ¶
func InitSaramaClient ¶
func InitSyncProducer ¶
func InitSyncProducer(c sarama.Client) sarama.SyncProducer
func InitWebServer ¶
func InitWebServer(middlewares []gin.HandlerFunc, userHandler *web.UserHandler, articleHandler *web.ArticleHandler) *gin.Engine
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.