probes

package
v0.0.0-...-04c4af4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithAppProvider

func WithAppProvider(app *app.App) Option

func WithEnabled

func WithEnabled(enabled bool) Option

func WithLiveEndpoint

func WithLiveEndpoint(endpoint string) Option

func WithPort

func WithPort(port int) Option

func WithReadEndpoint

func WithReadEndpoint(endpoint string) Option

type Options

type Options struct {
	Port              int
	Enabled           bool
	LivenessEndpoint  string
	ReadinessEndpoint string
	AppProvider       *app.App
}

func (*Options) MergeIn

func (o *Options) MergeIn(opts ...Option)

type ProbeFunc

type ProbeFunc func() error

type Probes

type Probes struct {
	providers.AbstractRunProvider

	Opts *Options
	// contains filtered or unexported fields
}

func (*Probes) AddLivenessProbes

func (p *Probes) AddLivenessProbes(fn ProbeFunc)

func (*Probes) AddReadinessProbes

func (p *Probes) AddReadinessProbes(fn ProbeFunc)

func (*Probes) Close

func (p *Probes) Close() error

func (*Probes) Init

func (p *Probes) Init() error

func (*Probes) Run

func (p *Probes) Run() error

Jump to

Keyboard shortcuts

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