Documentation ¶
Index ¶
- type Report
- type Reporter
- func (t *Reporter) Report() Report
- func (t *Reporter) Run(_ context.Context) error
- func (t *Reporter) SetLiveness(_ context.Context, b bool)
- func (t *Reporter) SetReadiness(_ context.Context, b bool)
- func (t *Reporter) Stop(_ context.Context) error
- func (t *Reporter) UpdateHealthChecks(_ context.Context, m map[string]*healthpb.Check)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct { IsRunning bool `json:"-"` NumRunningStateChanges uint32 `json:"-"` IsLive bool `json:"-"` NumLivenessStateChanges uint32 `json:"-"` NumLivenessSetTrue uint32 `json:"-"` NumLivenessSetFalse uint32 `json:"-"` IsReady bool `json:"-"` NumReadinessStateChanges uint32 `json:"-"` NumReadinessSetTrue uint32 `json:"-"` NumReadinessSetFalse uint32 `json:"-"` NumHealthCheckUpdates uint32 `json:"-"` HealthChecks map[string]*healthpb.Check `json:"-"` }
Report is a snapshot of this reporter's state.
func (Report) MarshalJSON ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is a reporter used for testing.
func FromReporter ¶
FromReporter is a convenience func for converting a health.Reporter implementation into a *Reporter instance.
Click to show internal directories.
Click to hide internal directories.