Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceHealthchecker ¶ added in v1.4.0
type DeviceHealthchecker interface {
HealthcheckDevices(ctx context.Context, orgId uuid.UUID, names []string) error
}
DeviceHealthchecker is the narrow device-service surface the healthchecker needs. Defined here so this package does not import internal/service/device (which would create an import cycle: device → healthchecker → device).
type HealthChecksType ¶
type HealthChecksType struct {
util.Singleton[Healthchecker]
}
var HealthChecks HealthChecksType
func (*HealthChecksType) Initialize ¶
func (h *HealthChecksType) Initialize(ctx context.Context, devices DeviceHealthchecker, log logrus.FieldLogger)