Documentation
¶
Index ¶
- Variables
- func GetService(kind, name string) func(opt ...fx.Option) fx.Option
- func GetServiceByKind(kind string) map[string]ServiceOption
- func ProvideDBParams[Settings any](migrationFS fs.FS) fx.Option
- func ProvideRedisParams[Settings any]() fx.Option
- func RegisterMiddleware(mw ...kit.HandlerFunc)
- func RegisterService[S any, SPtr ServicePtr[S]](params RegisterServiceParams)
- func StubProvider[Settings, IStub, Stub any](moduleName, hostPortField string, ...) fx.Option
- type RegisterServiceParams
- type ServiceOption
- type ServicePtr
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetServiceByKind ¶
func GetServiceByKind(kind string) map[string]ServiceOption
func ProvideRedisParams ¶
func RegisterMiddleware ¶
func RegisterMiddleware(mw ...kit.HandlerFunc)
func RegisterService ¶
func RegisterService[S any, SPtr ServicePtr[S]]( params RegisterServiceParams, )
Types ¶
type RegisterServiceParams ¶ added in v0.0.2
type ServiceOption ¶
func AllServices ¶
func AllServices() []ServiceOption
type ServicePtr ¶
Click to show internal directories.
Click to hide internal directories.