container

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceApplication       string = "application"
	InstanceApplicationReady  string = "application-ready"
	InstanceApplicationHealth string = "application-health"
	InstanceConfig            string = "config"
	InstanceLogger            string = "logger"
)
View Source
const (
	OrchestratorName        string = "orchestrator-container"
	AppContainerName        string = "app-container"
	ToolsContainerName      string = "tools-container"
	DBContainerName         string = "db-container"
	RepositoryContainerName string = "repository-container"
	UseCaseContainerName    string = "useCase-container"
	FacadeContainerName     string = "facade-container"
	ServiceContainerName    string = "service-container"
	HTTPContainerName       string = "http-container"
	GRPCContainerName       string = "gRPC-container"
	WorkerContainerName     string = "worker-container"
)

containers

View Source
const (
	InstanceAuthFacade string = "AuthFacade"
	InstanceDataFacade string = "DataFacade"
)
View Source
const (
	InstanceAuthAuditGRPCService string = "authAuditGRPCService"
	InstanceDataAuditGRPCService string = "dataAuditGRPCService"
	InstanceGRPCRunner           string = "grpcRunner"
)
View Source
const (
	InstanceHTTPRouter string = "HTTPRouter"
	InstanceHTTPRunner string = "HTTPRunner"
)
View Source
const (
	InstanceDB         string = "DB"
	InstanceDBMigrator string = "DBMigrator"
)
View Source
const (
	InstanceAuthAuditRepo        string = "authAuditRepo"
	InstanceAuthAuditMetricsRepo string = "authAuditMetricsRepo"
	InstanceAuthAuditTraceRepo   string = "authAuditTraceRepo"
	InstanceDataAuditRepo        string = "dataAuditRepo"
	InstanceDataAuditMetricsRepo string = "dataAuditMetricsRepo"
	InstanceDataAuditTraceRepo   string = "dataAuditTraceRepo"
)
View Source
const (
	InstanceHashCipher       string = "sha256-cipher"
	InstanceDataCipher       string = "aes-gcm-cipher"
	InstanceDataCipherHelper string = "data-cipher-helper"
	InstanceKeysHelper       string = "rsa-2048-keys-helper"
	InstanceJWTHelper        string = "jwt-helper"
	InstanceJWTHTTPHelper    string = "jwt-http-helper"
	InstanceJWTGRPCHelper    string = "jwt-grpc-helper"
	InstanceAuthHelper       string = "auth-helper"
)
View Source
const (
	InstanceTM                   string = "TransactionManager"
	InstanceAuthAuditUC          string = "AuthAuditUC"
	InstanceAuthListByPeriodUC   string = "AuthListByPeriodUC"
	InstanceAuthListByUsernameUC string = "AuthListByUsernameUC"
	InstanceDataAuditUC          string = "DataAuditUC"
	InstanceDataListByPeriodUC   string = "DataListByPeriodUC"
	InstanceDataListByInstanceUC string = "DataListByInstanceUC"
	InstanceAuthAuditTailGetUC   string = "AuthAuditTailGetUC"
	InstanceAuthAuditTailCutUC   string = "AuthAuditTailCutUC"
	InstanceDataAuditTailGetUC   string = "DataAuditTailGetUC"
	InstanceDataAuditTailCutUC   string = "DataAuditTailCutUC"
)
View Source
const (
	InstanceAuthAuditTailCutter string = "authAuditTailCutter"
	InstanceDataAuditTailCutter string = "dataAuditTailCutter"
)
View Source
const (
	InstanceHealthStatus string = "health-status"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContainer

type AppContainer struct {
	*container.BaseContainer
}

func NewAppContainer

func NewAppContainer(
	orchestrator container.Orchestrator,
) *AppContainer

func (*AppContainer) Init

func (ac *AppContainer) Init(ctx context.Context) error

type FacadeContainer

type FacadeContainer struct {
	*container.BaseLazyContainer
}

func NewFacadeContainer

func NewFacadeContainer(orchestrator container.Orchestrator) *FacadeContainer

func (*FacadeContainer) Init

func (fc *FacadeContainer) Init(ctx context.Context) error

type GRPCContainer

type GRPCContainer struct {
	*container.BaseLazyContainer
}

func NewGRPCContainer

func NewGRPCContainer(orchestrator container.Orchestrator) *GRPCContainer

func (*GRPCContainer) Init

func (gc *GRPCContainer) Init(ctx context.Context) error

type HTTPContainer

type HTTPContainer struct {
	*container.BaseLazyContainer
}

func NewHTTPContainer

func NewHTTPContainer(orchestrator container.Orchestrator) *HTTPContainer

func (*HTTPContainer) Init

func (hc *HTTPContainer) Init(initCtx context.Context) error

type Orchestrator

type Orchestrator struct {
	*container.BaseOrchestrator
	// contains filtered or unexported fields
}

func NewOrchestrator

func NewOrchestrator(conf *config.Config, log logger.Logger) *Orchestrator

func (*Orchestrator) Init

func (o *Orchestrator) Init(ctx context.Context) error

type PgContainer

type PgContainer struct {
	*container.BaseLazyContainer
}

PgContainer database connection and data migrations

func NewPgContainer

func NewPgContainer(orchestrator container.Orchestrator) *PgContainer

func (*PgContainer) Init

func (pc *PgContainer) Init(initCtx context.Context) error

type RepositoryContainer

type RepositoryContainer struct {
	*container.BaseLazyContainer
}

func NewRepositoryContainer

func NewRepositoryContainer(orchestrator container.Orchestrator) *RepositoryContainer

func (*RepositoryContainer) Init

func (rc *RepositoryContainer) Init(ctx context.Context) error

type ServiceContainer

type ServiceContainer struct {
	*container.BaseLazyContainer
}

func NewServiceContainer

func NewServiceContainer(orchestrator container.Orchestrator) *ServiceContainer

func (*ServiceContainer) Init

func (sc *ServiceContainer) Init(initCtx context.Context) error

type ToolsContainer

type ToolsContainer struct {
	*container.BaseLazyContainer
}

func NewToolsContainer

func NewToolsContainer(orchestrator container.Orchestrator) *ToolsContainer

func (*ToolsContainer) Init

func (tc *ToolsContainer) Init(ctx context.Context) error

type UseCaseContainer

type UseCaseContainer struct {
	*container.BaseLazyContainer
}

func NewUseCaseContainer

func NewUseCaseContainer(orchestrator container.Orchestrator) *UseCaseContainer

func (*UseCaseContainer) Init

func (ucc *UseCaseContainer) Init(ctx context.Context) error

type WorkerContainer

type WorkerContainer struct {
	*container.BaseLazyContainer
}

func NewWorkerContainer

func NewWorkerContainer(orchestrator container.Orchestrator) *WorkerContainer

func (*WorkerContainer) Init

func (wc *WorkerContainer) Init(initCtx context.Context) error

Jump to

Keyboard shortcuts

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