di

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitAPI

func InitAPI() (*http.API, error)

func InitGRPC

func InitGRPC() (*grpc.GRPC, error)

func NewEventManagerWithHandlers

func NewEventManagerWithHandlers(
	eventBus bus.EventBus,
	userCreatedHandler *handler.UserCreatedHandler,
) *manager.EventManager

NewEventManagerWithHandlers 注册事件处理器

func ProvideTypedCache

func ProvideTypedCache(factory *cache.Factory) contract.TypedCache

ProvideTypedCache 缓存工厂

func ProvideUserRepository

func ProvideUserRepository(
	txManager transactions.TransactionManager,
	cache contract.TypedCache,
) repository.UserRepository

ProvideUserRepository 提供用户仓储装饰器

Types

This section is empty.

Jump to

Keyboard shortcuts

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