di

package
v0.0.0-...-f80617b Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 22 Imported by: 5

Documentation

Overview

Main DI-package

Index

Constants

This section is empty.

Variables

DefaultSet ==========================================================================================================

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

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)

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