Documentation
¶
Index ¶
- type ILauncher
- type IServicesRunner
- type Option
- func WithAfterStart(fn func() error) Option
- func WithAfterStop(fn func() error) Option
- func WithBeforeStart(fn func() error) Option
- func WithBeforeStop(fn func() error) Option
- func WithContext(ctx context.Context) Option
- func WithLogger(l logger.Logger) Option
- func WithName(n string) Option
- func WithSignal(b bool) Option
- func WithVersion(v string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILauncher ¶
type ILauncher interface {
// Run launcher and all services
Run() error
// Stop launcher and all services
Stop()
// ServicesRunner return services runner
ServicesRunner() IServicesRunner
// Context return global context
Context() context.Context
}
type IServicesRunner ¶
type Option ¶
type Option func(*Options)
func WithAfterStart ¶
WithAfterStart run funcs after service starts
func WithAfterStop ¶
WithAfterStop run funcs after service stops
func WithBeforeStart ¶
WithBeforeStart run funcs before service starts
func WithBeforeStop ¶
WithBeforeStop run funcs before service stops
func WithContext ¶
func WithLogger ¶
func WithSignal ¶
Click to show internal directories.
Click to hide internal directories.