di

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func FxProvideAs

func FxProvideAs[I any](provider any, tAnns []fx.Annotation, iAnns []fx.Annotation) fx.Option

func NewAWSConfig

func NewAWSConfig(conf config.RootConfig) *aws.Config

func NewFxLogger

func NewFxLogger(logger log.Logger) fxevent.Logger

Types

type BaseParams

type BaseParams struct {
	fx.In
	LF           log.LoggerFactory
	FxLifecycle  fx.Lifecycle
	FxShutdowner fx.Shutdowner

	Conf   config.Config
	DBGorm databasegorm.DB `optional:"true"`
	DBBun  *bun.DB         `optional:"true"`
}

type FxLoggerFactory

type FxLoggerFactory interface {
	CreateLogger() fxevent.Logger
}

func NewFxLoggerFactory

func NewFxLoggerFactory(lf log.LoggerFactory) FxLoggerFactory

Jump to

Keyboard shortcuts

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