Documentation ¶
Index ¶
- type Base
- func (b *Base) AddDependencies(deps ...string)
- func (b *Base) Dependencies() map[string]Component
- func (b *Base) Dependency(name string) Component
- 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(c Component)
- func (b *Base) SetLogger(l *zerolog.Logger)
- func (b *Base) SetName(name string)
- type Component
- type Option
- type Orchestrator
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 Component ¶
type Component interface { Configure(...Option) error Start() error Shutdown() error SetName(string) Name() string AddDependencies(...string) SetDependency(Component) Dependency(string) Component Dependencies() map[string]Component SetLogger(*zerolog.Logger) Logger() *zerolog.Logger Log(zerolog.Level, string, ...any) }
type Option ¶
func WithLogger ¶
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func NewOrchestrator ¶
func NewOrchestrator() *Orchestrator
func (*Orchestrator) Component ¶
func (o *Orchestrator) Component(name string) Component
func (*Orchestrator) Configure ¶
func (o *Orchestrator) Configure() error
func (*Orchestrator) OrderComponents ¶
func (o *Orchestrator) OrderComponents() error
func (*Orchestrator) Register ¶
func (o *Orchestrator) Register(c Component, opts ...Option)
func (*Orchestrator) Start ¶
func (o *Orchestrator) Start() error
Click to show internal directories.
Click to hide internal directories.