Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(Options)
Option represents single option type
func WithContainer ¶
WithContainer creates a container Option
func WithProviders ¶
WithProviders creates a providers Option
type Options ¶
type Options interface {
SetContainer(di.Container)
SetLogger(zerolog.Logger)
SetProviders(...di.Provider)
SetLayers(...Layer)
}
Options represents a target for applying an Option
type Shutdowner ¶ added in v1.0.2
type Shutdowner interface {
Shutdown() <-chan error
}
Shutdowner is a layer that has his state shutdown logic
Click to show internal directories.
Click to hide internal directories.