wire

package
v0.0.0-...-22e3136 Latest Latest
Warning

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

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

Documentation

Overview

Package wire provides dependency injection configuration using Google Wire Author: Done-0 Created: 2025-09-25

Index

Constants

This section is empty.

Variables

AllProviders combines all provider sets in dependency order

View Source
var ControllerProviders = wire.NewSet(
	controller.NewTestController,
)

ControllerProviders provides controller layer dependencies

View Source
var InfrastructureProviders = wire.NewSet(
	ai.New,
	db.New,
	logger.New,
	i18n.New,

	redis.New,
	sse.New,
)

InfrastructureProviders provides infrastructure layer dependencies

View Source
var MapperProviders = wire.NewSet()

MapperProviders provides data access layer dependencies

View Source
var ServiceProviders = wire.NewSet(
	impl.NewTestService,
)

ServiceProviders provides business logic layer dependencies

Functions

This section is empty.

Types

type Container

type Container struct {
	Config *configs.Config

	// Infrastructure
	AIManager       *ai.AIManager
	DatabaseManager db.DatabaseManager
	RedisManager    redis.RedisManager
	LoggerManager   logger.LoggerManager
	I18nManager     i18n.I18nManager
	SSEManager      sse.SSEManager

	// Controllers
	TestController *controller.TestController
}

Container holds all application dependencies

func NewContainer

func NewContainer(config *configs.Config) (*Container, error)

NewContainer initializes the complete application container using Wire

Jump to

Keyboard shortcuts

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