healthcheck

package
v0.0.0-...-d591811 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	STATE_JOINING        = 1
	STATE_DONOR_DESYNCED = 2
	STATE_JOINED         = 3
	STATE_SYNCED         = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DBStateSnapshotter

type DBStateSnapshotter struct {
	DB     *sql.DB
	Logger lager.Logger
}

func (*DBStateSnapshotter) State

func (s *DBStateSnapshotter) State() (state domain.DBState, err error)

type HealthChecker

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

func New

func New(db *sql.DB, config config.Config, logger lager.Logger) *HealthChecker

func (*HealthChecker) Check

func (h *HealthChecker) Check() (string, error)

func (*HealthChecker) CheckReq

func (h *HealthChecker) CheckReq(req *http.Request) (string, error)

Jump to

Keyboard shortcuts

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