Documentation ¶
Overview ¶
Main DI-package
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSet = wire.NewSet(ctx.New, autoMaxPro.New, flags.New, config.New, logger_di.New, traicing_di.New, cache.New, i18n.New)
Default =============================================================================================================
View Source
var FullSet = wire.NewSet( DefaultSet, NewFullService, store.New, sentry.New, monitoring.New, profiling.New, mq_di.New, rpc.InitServer, rpc.InitClient, )
FullService =========================================================================================================
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // Common Ctx context.Context Cfg *config.Config Log logger.Logger I18N *message.Printer // Delivery DB *db.Store Cache *redisCache.UniversalClient MQ v1.MQ ServerRPC *rpc.RPCServer ClientRPC *grpc.ClientConn // Observability Tracer *trace.TracerProvider Sentry *sentryhttp.Handler Monitoring *http.ServeMux PprofEndpoint profiling.PprofEndpoint }
Service - heplers
func InitializeFullService ¶
func NewFullService ¶
func NewFullService( ctx context.Context, cfg *config.Config, log logger.Logger, i18n *message.Printer, serverRPC *rpc.RPCServer, clientRPC *grpc.ClientConn, mq v1.MQ, db *db.Store, cache *redisCache.UniversalClient, sentryHandler *sentryhttp.Handler, monitoring *http.ServeMux, tracer *trace.TracerProvider, pprofHTTP profiling.PprofEndpoint, autoMaxProcsOption autoMaxPro.AutoMaxPro, ) (*Service, error)
Click to show internal directories.
Click to hide internal directories.