probes

package
v0.0.0-...-5515e0f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Config

type Config struct {
	Enabled           bool
	Port              int
	LivenessEndpoint  string
	ReadinessEndpoint string
}

func NewConfig

func NewConfig(s *setting.Setting) (*Config, error)

type ProbeFunc

type ProbeFunc func() error

type Probes

type Probes struct {
	module.DefaultRunProvider
	Config *Config
	// contains filtered or unexported fields
}

func New

func New(config *Config, appProvider *app.App) *Probes

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) Run

func (p *Probes) Run() error

Jump to

Keyboard shortcuts

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