di

package
v0.0.0-...-36d8597 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 25 Imported by: 0

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 =============================================================================================================

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 InitializeFullService() (*Service, func(), error)

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)

Directories

Path Synopsis
pkg
config
Config package
Config package
mq

Jump to

Keyboard shortcuts

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