Documentation
¶
Overview ¶
Package app provides dependency injection container for assembling application components.
Index ¶
- type Container
- func (c *Container) AEADManager() cryptoService.AEADManager
- func (c *Container) AuditLogHandler() (*authHTTP.AuditLogHandler, error)
- func (c *Container) AuditLogRepository() (authUseCase.AuditLogRepository, error)
- func (c *Container) AuditLogUseCase() (authUseCase.AuditLogUseCase, error)
- func (c *Container) BusinessMetrics() (metrics.BusinessMetrics, error)
- func (c *Container) ClientHandler() (*authHTTP.ClientHandler, error)
- func (c *Container) ClientRepository() (authUseCase.ClientRepository, error)
- func (c *Container) ClientUseCase() (authUseCase.ClientUseCase, error)
- func (c *Container) Config() *config.Config
- func (c *Container) CryptoHandler() (*transitHTTP.CryptoHandler, error)
- func (c *Container) DB() (*sql.DB, error)
- func (c *Container) DekRepository() (secretsUseCase.DekRepository, error)
- func (c *Container) HTTPServer() (*http.Server, error)
- func (c *Container) KekRepository() (cryptoUseCase.KekRepository, error)
- func (c *Container) KekUseCase() (cryptoUseCase.KekUseCase, error)
- func (c *Container) KeyManager() cryptoService.KeyManager
- func (c *Container) Logger() *slog.Logger
- func (c *Container) MasterKeyChain() (*cryptoDomain.MasterKeyChain, error)
- func (c *Container) MetricsProvider() (*metrics.Provider, error)
- func (c *Container) SecretHandler() (*secretsHTTP.SecretHandler, error)
- func (c *Container) SecretRepository() (secretsUseCase.SecretRepository, error)
- func (c *Container) SecretService() authService.SecretService
- func (c *Container) SecretUseCase() (secretsUseCase.SecretUseCase, error)
- func (c *Container) Shutdown(ctx context.Context) error
- func (c *Container) TokenHandler() (*authHTTP.TokenHandler, error)
- func (c *Container) TokenRepository() (authUseCase.TokenRepository, error)
- func (c *Container) TokenService() authService.TokenService
- func (c *Container) TokenUseCase() (authUseCase.TokenUseCase, error)
- func (c *Container) TokenizationDekRepository() (tokenizationUseCase.DekRepository, error)
- func (c *Container) TokenizationHandler() (*tokenizationHTTP.TokenizationHandler, error)
- func (c *Container) TokenizationKeyHandler() (*tokenizationHTTP.TokenizationKeyHandler, error)
- func (c *Container) TokenizationKeyRepository() (tokenizationUseCase.TokenizationKeyRepository, error)
- func (c *Container) TokenizationKeyUseCase() (tokenizationUseCase.TokenizationKeyUseCase, error)
- func (c *Container) TokenizationTokenRepository() (tokenizationUseCase.TokenRepository, error)
- func (c *Container) TokenizationUseCase() (tokenizationUseCase.TokenizationUseCase, error)
- func (c *Container) TransitDekRepository() (transitUseCase.DekRepository, error)
- func (c *Container) TransitKeyHandler() (*transitHTTP.TransitKeyHandler, error)
- func (c *Container) TransitKeyRepository() (transitUseCase.TransitKeyRepository, error)
- func (c *Container) TransitKeyUseCase() (transitUseCase.TransitKeyUseCase, error)
- func (c *Container) TxManager() (database.TxManager, error)
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 with lazy initialization.
func NewContainer ¶
NewContainer creates a new dependency injection container with the provided configuration.
func (*Container) AEADManager ¶
func (c *Container) AEADManager() cryptoService.AEADManager
AEADManager returns the AEAD manager service.
func (*Container) AuditLogHandler ¶
func (c *Container) AuditLogHandler() (*authHTTP.AuditLogHandler, error)
AuditLogHandler returns the HTTP handler for audit log operations.
func (*Container) AuditLogRepository ¶
func (c *Container) AuditLogRepository() (authUseCase.AuditLogRepository, error)
AuditLogRepository returns the audit log repository based on database driver.
func (*Container) AuditLogUseCase ¶
func (c *Container) AuditLogUseCase() (authUseCase.AuditLogUseCase, error)
AuditLogUseCase returns the audit log use case.
func (*Container) BusinessMetrics ¶ added in v0.3.0
func (c *Container) BusinessMetrics() (metrics.BusinessMetrics, error)
BusinessMetrics returns the business metrics recorder.
func (*Container) ClientHandler ¶
func (c *Container) ClientHandler() (*authHTTP.ClientHandler, error)
ClientHandler returns the HTTP handler for client management operations.
func (*Container) ClientRepository ¶
func (c *Container) ClientRepository() (authUseCase.ClientRepository, error)
ClientRepository returns the client repository based on database driver.
func (*Container) ClientUseCase ¶
func (c *Container) ClientUseCase() (authUseCase.ClientUseCase, error)
ClientUseCase returns the client use case.
func (*Container) CryptoHandler ¶
func (c *Container) CryptoHandler() (*transitHTTP.CryptoHandler, error)
CryptoHandler returns the crypto HTTP handler instance.
func (*Container) DekRepository ¶
func (c *Container) DekRepository() (secretsUseCase.DekRepository, error)
DekRepository returns the DEK repository based on database driver.
func (*Container) HTTPServer ¶
HTTPServer returns the HTTP server instance.
func (*Container) KekRepository ¶
func (c *Container) KekRepository() (cryptoUseCase.KekRepository, error)
KekRepository returns the KEK repository.
func (*Container) KekUseCase ¶
func (c *Container) KekUseCase() (cryptoUseCase.KekUseCase, error)
KekUseCase returns the KEK use case.
func (*Container) KeyManager ¶
func (c *Container) KeyManager() cryptoService.KeyManager
KeyManager returns the key manager service.
func (*Container) MasterKeyChain ¶
func (c *Container) MasterKeyChain() (*cryptoDomain.MasterKeyChain, error)
MasterKeyChain returns the master key chain loaded from environment variables.
func (*Container) MetricsProvider ¶ added in v0.3.0
MetricsProvider returns the metrics provider for Prometheus export.
func (*Container) SecretHandler ¶
func (c *Container) SecretHandler() (*secretsHTTP.SecretHandler, error)
SecretHandler returns the HTTP handler for secret management operations.
func (*Container) SecretRepository ¶
func (c *Container) SecretRepository() (secretsUseCase.SecretRepository, error)
SecretRepository returns the secret repository based on database driver.
func (*Container) SecretService ¶
func (c *Container) SecretService() authService.SecretService
SecretService returns the secret service for authentication operations.
func (*Container) SecretUseCase ¶
func (c *Container) SecretUseCase() (secretsUseCase.SecretUseCase, error)
SecretUseCase returns the secret use case.
func (*Container) TokenHandler ¶
func (c *Container) TokenHandler() (*authHTTP.TokenHandler, error)
TokenHandler returns the HTTP handler for token operations.
func (*Container) TokenRepository ¶
func (c *Container) TokenRepository() (authUseCase.TokenRepository, error)
TokenRepository returns the token repository based on database driver.
func (*Container) TokenService ¶
func (c *Container) TokenService() authService.TokenService
TokenService returns the token service for authentication operations.
func (*Container) TokenUseCase ¶
func (c *Container) TokenUseCase() (authUseCase.TokenUseCase, error)
TokenUseCase returns the token use case.
func (*Container) TokenizationDekRepository ¶ added in v0.4.0
func (c *Container) TokenizationDekRepository() (tokenizationUseCase.DekRepository, error)
TokenizationDekRepository returns the DEK repository for tokenization use case.
func (*Container) TokenizationHandler ¶ added in v0.4.0
func (c *Container) TokenizationHandler() (*tokenizationHTTP.TokenizationHandler, error)
TokenizationHandler returns the tokenization HTTP handler.
func (*Container) TokenizationKeyHandler ¶ added in v0.4.0
func (c *Container) TokenizationKeyHandler() (*tokenizationHTTP.TokenizationKeyHandler, error)
TokenizationKeyHandler returns the tokenization key HTTP handler.
func (*Container) TokenizationKeyRepository ¶ added in v0.4.0
func (c *Container) TokenizationKeyRepository() (tokenizationUseCase.TokenizationKeyRepository, error)
TokenizationKeyRepository returns the tokenization key repository.
func (*Container) TokenizationKeyUseCase ¶ added in v0.4.0
func (c *Container) TokenizationKeyUseCase() (tokenizationUseCase.TokenizationKeyUseCase, error)
TokenizationKeyUseCase returns the tokenization key use case.
func (*Container) TokenizationTokenRepository ¶ added in v0.4.0
func (c *Container) TokenizationTokenRepository() (tokenizationUseCase.TokenRepository, error)
TokenizationTokenRepository returns the tokenization token repository.
func (*Container) TokenizationUseCase ¶ added in v0.4.0
func (c *Container) TokenizationUseCase() (tokenizationUseCase.TokenizationUseCase, error)
TokenizationUseCase returns the tokenization use case.
func (*Container) TransitDekRepository ¶
func (c *Container) TransitDekRepository() (transitUseCase.DekRepository, error)
TransitDekRepository returns the DEK repository for transit use case.
func (*Container) TransitKeyHandler ¶
func (c *Container) TransitKeyHandler() (*transitHTTP.TransitKeyHandler, error)
TransitKeyHandler returns the transit key HTTP handler instance.
func (*Container) TransitKeyRepository ¶
func (c *Container) TransitKeyRepository() (transitUseCase.TransitKeyRepository, error)
TransitKeyRepository returns the transit key repository instance.
func (*Container) TransitKeyUseCase ¶
func (c *Container) TransitKeyUseCase() (transitUseCase.TransitKeyUseCase, error)
TransitKeyUseCase returns the transit key use case instance.