healthcheck

package
v1.13.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthCheckServer

func NewHealthCheckServer(healthCheckPort string, checkFunction func() (bool, error), options ...Options)

NewHealthCheckServer starts a health check server with the given port. It exposes a Check function that is compatible with consul The check function will call the 'checkFunction' that is passed and will return accordingly

Types

type Options

type Options func(hcs *healthCheckServer)

Options sets the oprions for the health checking service

func Logger

func Logger(customLogger *gologger.CustomLogger) Options

Logger sets the logger for consul Defaults to consul logger

Jump to

Keyboard shortcuts

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