Documentation
¶
Index ¶
- type Base
- func (b *Base) AddDependencies(deps ...string)
- func (b *Base) Dependencies() map[string]Module
- func (b *Base) Dependency(name string) Module
- func (b *Base) Log(lvl zerolog.Level, message string, fields ...any)
- func (b *Base) Logger() *zerolog.Logger
- func (b *Base) Name() string
- func (b *Base) SetDependency(m Module)
- func (b *Base) SetLogger(l *zerolog.Logger)
- func (b *Base) SetName(name string)
- type Module
- type Option
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) AddDependencies ¶
func (*Base) Dependencies ¶
func (*Base) Dependency ¶
func (*Base) SetDependency ¶
type Module ¶
type Module interface {
Configure(...Option) error
Start() error
Shutdown() error
SetName(string)
Name() string
AddDependencies(...string)
SetDependency(Module)
Dependency(string) Module
Dependencies() map[string]Module
SetLogger(*zerolog.Logger)
Logger() *zerolog.Logger
Log(zerolog.Level, string, ...any)
}
type Option ¶
func WithLogger ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func NewRuntime ¶
func NewRuntime() *Runtime
func (*Runtime) OrderModules ¶
Click to show internal directories.
Click to hide internal directories.