haproxy_client

package
v0.0.0-...-3216bbb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HaproxyClient

type HaproxyClient interface {
	GetStats() HaproxyStats
}

type HaproxyStat

type HaproxyStat struct {
	ProxyName            string `csv:"pxname"`
	CurrentQueued        uint64 `csv:"qcur"`
	CurrentSessions      uint64 `csv:"scur"`
	ErrorConnecting      uint64 `csv:"econ"`
	AverageQueueTimeMs   uint64 `csv:"qtime"`
	AverageConnectTimeMs uint64 `csv:"ctime"`
	AverageSessionTimeMs uint64 `csv:"ttime"`
}

type HaproxyStats

type HaproxyStats []HaproxyStat

type HaproxyStatsClient

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

func NewClient

func NewClient(logger lager.Logger, haproxyUnixSocket string, timeout time.Duration) *HaproxyStatsClient

func (*HaproxyStatsClient) GetStats

func (r *HaproxyStatsClient) GetStats() HaproxyStats

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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