healthcheck

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(checker Checker, logger zerolog.Logger) http.Handler

func Start

func Start(
	ctx context.Context,
	checker Checker,
	logger zerolog.Logger,
)

Types

type Checker

type Checker interface {
	Check(ctx context.Context) error
}

func NewChecker

func NewChecker(
	engine string,
	processor engine.MessageProcessor,
	encoder encoding.Encoder,
	eventWithEntity bool,
	eventWithAlarm bool,
) Checker

func NewRpcChecker

func NewRpcChecker(
	engine string,
	processor engine.MessageProcessor,
	encoder encoding.Encoder,
	createEvent func(types.Entity, types.Alarm) any,
) Checker

type Handler

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

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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