Documentation
¶
Index ¶
- type ProcessContext
- func (b *ProcessContext) ComponentFinished()
- func (b *ProcessContext) ComponentStarted()
- func (b *ProcessContext) Context() context.Context
- func (b *ProcessContext) Degraded(err error)
- func (b *ProcessContext) IsDegraded() (bool, []string)
- func (b *ProcessContext) RegisterShutdownCallback(callback func())
- func (b *ProcessContext) ShutdownDendrite()
- func (b *ProcessContext) WaitForComponentsToFinish()
- func (b *ProcessContext) WaitForShutdown() <-chan struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessContext ¶
type ProcessContext struct {
// contains filtered or unexported fields
}
func NewProcessContext ¶
func NewProcessContext() *ProcessContext
func (*ProcessContext) ComponentFinished ¶
func (b *ProcessContext) ComponentFinished()
func (*ProcessContext) ComponentStarted ¶
func (b *ProcessContext) ComponentStarted()
func (*ProcessContext) Context ¶
func (b *ProcessContext) Context() context.Context
func (*ProcessContext) Degraded ¶
func (b *ProcessContext) Degraded(err error)
func (*ProcessContext) IsDegraded ¶
func (b *ProcessContext) IsDegraded() (bool, []string)
func (*ProcessContext) RegisterShutdownCallback ¶ added in v1.1.3
func (b *ProcessContext) RegisterShutdownCallback(callback func())
RegisterShutdownCallback runs once after process cancellation and all registered components have stopped. It is the final shutdown phase for resources that must remain fenced while HTTP and workers drain.
func (*ProcessContext) ShutdownDendrite ¶
func (b *ProcessContext) ShutdownDendrite()
func (*ProcessContext) WaitForComponentsToFinish ¶
func (b *ProcessContext) WaitForComponentsToFinish()
func (*ProcessContext) WaitForShutdown ¶
func (b *ProcessContext) WaitForShutdown() <-chan struct{}