healthchecker

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

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

func New

func New(
	cl *consul.Client,
	serviceName string,
	pollInterval time.Duration,
	outChanSize uint,
	logger zerolog.Logger,
) *HealthChecker

func (*HealthChecker) Out

func (hc *HealthChecker) Out() chan model.InstanceChange

func (*HealthChecker) Start

func (hc *HealthChecker) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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