Documentation ¶
Index ¶
- func Close(ctx context.Context, ball *mud.Ball, selector mud.ComponentSelector) (err error)
- func CreateSelector() 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() 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 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.
Click to show internal directories.
Click to hide internal directories.