Documentation
¶
Overview ¶
Package refresher provides a scalable worker Group implementing service.Service and service.Scalable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group is a scalable worker set driven by governor.Transport. It mirrors the architecture of the evictor Group you provided.
func New ¶
func New(ctx context.Context, cfg config.Config, name string, backend workers.RefreshBackend) *Group
New constructs a new refresher Group.
The style mirrors your evictor: a root context is accepted, and a typed backend is injected. The governor.Transport will be provided later via Serve().
func (*Group) Serve ¶ added in v1.5.0
func (g *Group) Serve(t orchestrator.Transport)
Serve wires the governor.Transport and starts the control loop. The loop reacts to Start/On/Off/ScaleTo/Reload/Stop typed channels.
func (*Group) Transport ¶ added in v1.5.0
func (g *Group) Transport() orchestrator.Transport
Click to show internal directories.
Click to hide internal directories.