checker

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBHealthChecker

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

func (DBHealthChecker) Check

func (d DBHealthChecker) Check(ctx context.Context) Health

type Health

type Health struct {
	Status  HealthStatus
	Name    string
	Details map[string]any
}

func NewHealth

func NewHealth(status HealthStatus, name string) Health

func NewHealthWithDetails

func NewHealthWithDetails(status HealthStatus, name string, details map[string]any) *Health

type HealthChecker

type HealthChecker interface {
	Check(ctx context.Context) Health
}

func NewDBHealthChecker

func NewDBHealthChecker(repository persistence.Repository, logger logger.Logger) HealthChecker

func NewRabbitMQHealthChecker

func NewRabbitMQHealthChecker() HealthChecker

type HealthStatus

type HealthStatus int
const (
	Unknown HealthStatus = iota
	Healthy
	Unhealthy
)

func (HealthStatus) String

func (h HealthStatus) String() string

type RabbitMQHealthChecker

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

func (RabbitMQHealthChecker) Check

Jump to

Keyboard shortcuts

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