contracts

package
v0.0.0-...-4a59535 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusUp   = "up"
	StatusDown = "down"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check map[string]Status

func (Check) AllUp

func (check Check) AllUp() bool

type Health

type Health interface {
	CheckHealth(ctx context.Context) error
	GetHealthName() string
}

type HealthParams

type HealthParams struct {
	fx.In

	Healths []Health `group:"healths"`
}

type HealthService

type HealthService interface {
	CheckHealth(ctx context.Context) Check
}

type Status

type Status struct {
	Status string `json:"status"`
}

func NewStatus

func NewStatus(err error) Status

func (Status) IsUp

func (status Status) IsUp() bool

Jump to

Keyboard shortcuts

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