ioc

package
v0.0.0-...-0ca6d7b Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCodeLocalCache

func InitCodeLocalCache() cache.CodeCache

func InitDB

func InitDB(l logger.Logger) *gorm.DB

func InitGinMiddlewares

func InitGinMiddlewares(
	redisClient redis.Cmdable,
	jwtHdl ijwt.Handler,
	l logger.Logger,
) []gin.HandlerFunc

func InitGiteaService

func InitGiteaService(l logger.Logger) gitea.Service

func InitLogger

func InitLogger() logger.Logger

func InitRedis

func InitRedis() redis.Cmdable

func InitSMSService

func InitSMSService(
	redisClient redis.Cmdable,
	asyncRepo repository.AsyncSMSRepository,
) sms.Service

func InitSaramaClient

func InitSaramaClient() sarama.Client

func InitSyncProducer

func InitSyncProducer(c sarama.Client) sarama.SyncProducer

func InitUserLocalCache

func InitUserLocalCache() cache.UserCache

func InitWebServer

func InitWebServer(middlewares []gin.HandlerFunc,
	userHandlers *web.UserHandler,
	giteaHandlers *web.OAuth2GiteaHandler,
	articleHandlers *web.ArticleHandler,
) *gin.Engine

Types

This section is empty.

Jump to

Keyboard shortcuts

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