ioc

package
v0.0.0-...-24b49fa Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCodeLocalCache

func InitCodeLocalCache() cache.CodeCache

func InitConsumers

func InitConsumers() []events.Consumer
func InitConsumers(c1 *intrEvents.InteractiveReadEventConsumer) []events.Consumer {
	return []events.Consumer{c1}
}

func InitDB

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

func InitEtcd

func InitEtcd() *clientv3.Client

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 InitIntrClientEtcd

func InitIntrClientEtcd(client *clientv3.Client) intrv1.InteractiveServiceClient

func InitJobs

func InitJobs(l logger.Logger, j job.Job) *cron.Cron

func InitLogger

func InitLogger() logger.Logger

func InitOTEL

func InitOTEL() func(ctx context.Context)

func InitRankingJob

func InitRankingJob(svc service.RankingService, l logger.Logger, redis redis.Cmdable) job.Job

func InitRankingLocalCache

func InitRankingLocalCache() *localcache.RankingLocalCache

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 InitTopArticlesCache

func InitTopArticlesCache() intrCache.TopArticlesCache

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