di

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

Container is a dependency injection container that manages application services

func GetInstance

func GetInstance() *Container

GetInstance returns the singleton instance of the DI container

func (*Container) Cleanup

func (c *Container) Cleanup() error

Cleanup releases all resources held by the container

func (*Container) GetConfig

func (c *Container) GetConfig() *config.Config

func (*Container) GetDockerClient

func (c *Container) GetDockerClient() docker.ClientInterface

GetDockerClient returns the Docker client

func (*Container) GetMetricsManager

func (c *Container) GetMetricsManager() *observability.MetricsManager

GetMetricsManager returns the metrics manager

func (*Container) GetRegistryClient

func (c *Container) GetRegistryClient() registry.RegistryInterface

GetRegistryClient returns the registry client

func (*Container) GetSyncer

func (c *Container) GetSyncer() *sync.SyncerV2

GetSyncer returns the syncer

func (*Container) GetTelemetryManager

func (c *Container) GetTelemetryManager() *observability.TelemetryManager

GetTelemetryManager returns the telemetry manager

func (*Container) Initialize

func (c *Container) Initialize(cfg *config.Config) error

Initialize initializes the container with the given configuration

Jump to

Keyboard shortcuts

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