heartbeat

package
v1.26.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartBeat

type HeartBeat interface {
	IsHealthy(ctx context.Context, addr string) error
	Interval() time.Duration
}

func NewHeartbeat

func NewHeartbeat(c config.HeartBeat, options ...Option) HeartBeat

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithDefaultUser

func WithDefaultUser(user, password string) Option

Jump to

Keyboard shortcuts

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