healthx

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckContract

type HealthCheckContract interface {
	Run() HealthCheckStatusContract
}

type HealthCheckManager

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

func NewManager

func NewManager() HealthCheckManager

func (*HealthCheckManager) Run

func (*HealthCheckManager) SomethingFailed

func (c *HealthCheckManager) SomethingFailed() bool

func (*HealthCheckManager) Use

type HealthCheckResult

type HealthCheckResult map[string]bool

type HealthCheckStatus

type HealthCheckStatus struct {
	StatusText string
	Failed     bool
	ID         string
}

func (HealthCheckStatus) CheckID

func (s HealthCheckStatus) CheckID() string

func (HealthCheckStatus) IsFailed

func (s HealthCheckStatus) IsFailed() bool

func (HealthCheckStatus) Status

func (s HealthCheckStatus) Status() string

type HealthCheckStatusContract

type HealthCheckStatusContract interface {
	Status() string
	IsFailed() bool
	CheckID() string
}

type NatsConnectionCheck

type NatsConnectionCheck struct {
	Conn *nats.Conn
	ID   string
}

func (*NatsConnectionCheck) Run

type PostgresConnectionCheck

type PostgresConnectionCheck struct {
	Conn *pgxpool.Conn
	ID   string
}

func (*PostgresConnectionCheck) Run

Jump to

Keyboard shortcuts

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