Documentation ¶
Index ¶
- func Close(ctx context.Context, ball *mud.Ball, selector mud.ComponentSelector) (err error)
- func CreateSelector(ball *mud.Ball) mud.ComponentSelector
- func CreateSelectorFromString(ball *mud.Ball, selection string) mud.ComponentSelector
- func IdentityModule(ball *mud.Ball)
- func Initialize(ctx context.Context, ball *mud.Ball, selector mud.ComponentSelector) (err error)
- func Run(ctx context.Context, ball *mud.Ball, selector mud.ComponentSelector) (err error)
- type Service
- type StopTrigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSelector ¶
func CreateSelector(ball *mud.Ball) mud.ComponentSelector
CreateSelector create a custom component hierarchy selector based on environment variables. This is the way how it is possible to replace components of the process or disable existing ones.
func CreateSelectorFromString ¶ added in v1.118.4
func CreateSelectorFromString(ball *mud.Ball, selection string) mud.ComponentSelector
CreateSelectorFromString creates a custom component hierarchy selector based on the provided string + adjust module hierarchy. selection should be a coma separated list of the following: * simple component name (like: debug.Wrapper) to include it with all the dependencies * component name with - prefix to exclude it from previous selection * interface=implementation to choose from already registered implementations * !component to disable interface (inject nil instead of any implementation).
func IdentityModule ¶
IdentityModule provides identity related components for modular setup.
func Initialize ¶
Initialize creates all the requested components.
Types ¶
type Service ¶
type Service struct{}
Service is a marker annotation for all components which should be started (with all the dependencies).
type StopTrigger ¶
type StopTrigger struct {
Cancel context.CancelFunc
}
StopTrigger is a helper to stop all the components and finish the process. Just call cancel.