ready

package
v0.0.0-...-ce68545 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StateString

func StateString(state ServerInfoState) string

Types

type Probe

type Probe struct {
	LocalHostAddr string
	AdminPort     uint16

	Context context.Context
	// NoEnvoy so we only check config status
	NoEnvoy bool
	// contains filtered or unexported fields
}

Probe for readiness.

func (*Probe) Check

func (p *Probe) Check() error

Check executes the probe and returns an error if the probe fails.

type Prober

type Prober interface {
	// Check executes the probe and returns an error if the probe fails.
	Check() error
}

type ServerInfoState

type ServerInfoState int32
const (
	// Server is live and serving traffic.
	Live ServerInfoState = 0
	// Server is draining listeners in response to external health checks failing.
	Draining ServerInfoState = 1
	// Server has not yet completed cluster manager initialization.
	PreInitializing ServerInfoState = 2
	// Server is running the cluster manager initialization callbacks (e.g., RDS).
	Initializing ServerInfoState = 3
)

Jump to

Keyboard shortcuts

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