container

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package container provides dependency injection for the application.

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 holds all application dependencies.

func New

func New(opts Options) (*Container, error)

New creates a new dependency injection container.

func (*Container) CheckProfileUseCase

func (c *Container) CheckProfileUseCase() *services.CheckProfileUseCase

CheckProfileUseCase returns the check profile use case.

func (*Container) Logger

func (c *Container) Logger() *slog.Logger

Logger returns the configured logger.

func (*Container) OutputFormatterFactory

func (c *Container) OutputFormatterFactory() ports.OutputFormatterFactory

OutputFormatterFactory returns the output formatter factory port.

func (*Container) ProfileLoader

func (c *Container) ProfileLoader() ports.ProfileLoader

ProfileLoader returns the profile loader port.

func (*Container) ProfileValidator

func (c *Container) ProfileValidator() ports.ProfileValidator

ProfileValidator returns the profile validator port.

func (*Container) SystemConfig

func (c *Container) SystemConfig() *system.Config

SystemConfig returns the system configuration.

type Options

type Options struct {
	Logger           *slog.Logger
	SecurityLevel    string
	SystemConfigPath string
	TrustPlugins     bool
}

Options configure the container.

Jump to

Keyboard shortcuts

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