util

package
v0.0.0-...-47f7c41 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReadinessStats

func GetReadinessStats(localHostAddr string, adminPort uint16) (*uint64, bool, error)

GetReadinessStats returns the current Envoy state by checking the "server.state" stat.

Types

type Stats

type Stats struct {
	// Update Stats.
	CDSUpdatesSuccess   uint64
	CDSUpdatesRejection uint64
	LDSUpdatesSuccess   uint64
	LDSUpdatesRejection uint64
	// Server State of Envoy.
	ServerState    uint64
	WorkersStarted uint64
}

Stats contains values of interest from a poll of Envoy stats.

func GetUpdateStatusStats

func GetUpdateStatusStats(localHostAddr string, adminPort uint16) (*Stats, error)

GetUpdateStatusStats returns the version stats for CDS and LDS.

func (*Stats) String

func (s *Stats) String() string

String representation of the Stats.

Jump to

Keyboard shortcuts

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