healthfile

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyRunning = errors.New("observer is already running")

Functions

This section is empty.

Types

type Observer

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

func LiveObserver

func LiveObserver(h *health.Health, path string, opts ...Option) *Observer

func ReadyObserver

func ReadyObserver(h *health.Health, path string, opts ...Option) *Observer

func (*Observer) Close

func (o *Observer) Close() error

func (*Observer) Path

func (o *Observer) Path() string

func (*Observer) Run

func (o *Observer) Run(ctx context.Context) error

type Option

type Option func(o *Observer)

func WithCheckInterval

func WithCheckInterval(interval time.Duration) Option

func WithCheckTimeout

func WithCheckTimeout(timeout time.Duration) Option

Jump to

Keyboard shortcuts

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