Documentation ¶
Overview ¶
Main DI-package
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSet = wire.NewSet( shortctx.New, autoMaxPro.New, flags.New, config.New, logger_di.New, traicing_di.New, monitoring.New, cache.New, profiling.New, permission.New, )
DefaultSet ==========================================================================================================
View Source
var FullSet = wire.NewSet( DefaultSet, NewFullService, store.New, mq_di.New, rpc.InitServer, rpc.InitClient, )
FullSet =============================================================================================================
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // Common Ctx context.Context Cfg *config.Config Log logger.Logger // Security Auth *authzed.Client // Delivery DB db.DB Cache redisCache.UniversalClient MQ mq.MQ ServerRPC *rpc.Server ClientRPC *grpc.ClientConn // Observability Tracer trace.TracerProvider Monitoring *monitoring.Monitoring PprofEndpoint profiling.PprofEndpoint AutoMaxPro autoMaxPro.AutoMaxPro }
Service - helpers
func InitializeFullService ¶
func NewFullService ¶
func NewFullService( ctx context.Context, cfg *config.Config, log logger.Logger, serverRPC *rpc.Server, clientRPC *grpc.ClientConn, dataBus mq.MQ, store_db db.DB, shortcache redisCache.UniversalClient, monitor *monitoring.Monitoring, tracer trace.TracerProvider, pprofHTTP profiling.PprofEndpoint, autoMaxProcsOption autoMaxPro.AutoMaxPro, ) (*Service, error)
Click to show internal directories.
Click to hide internal directories.