health

package
v0.0.0-...-b180f38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker interface {
	Check(ctx context.Context) error
	Name() string
}

type HealthStatus

type HealthStatus struct {
	Healthy     bool
	LastChecked time.Time
	Message     string
}

type StorageHealthChecker

type StorageHealthChecker struct {
	// contains filtered or unexported fields
}

func NewStorageHealthChecker

func NewStorageHealthChecker(metrics *metrics.StorageMetrics, tracer tracing.Tracer) *StorageHealthChecker

func (*StorageHealthChecker) CheckHealth

func (h *StorageHealthChecker) CheckHealth(ctx context.Context) map[string]HealthStatus

func (*StorageHealthChecker) RegisterChecker

func (h *StorageHealthChecker) RegisterChecker(checker HealthChecker)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL