client

package
v0.0.0-...-512f07e Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	Requests   uint32
	Accepts    uint32
	Rejects    uint32
	Challenges uint32
}

Access type.

type Accounting

type Accounting struct {
	Requests          uint32
	Responses         uint32
	DuplicateRequests uint32
	MalformedRequests uint32
	InvalidRequests   uint32
	DroppedRequests   uint32
	UnknownTypes      uint32
}

Accounting type.

type Auth

type Auth struct {
	Responses         uint32
	DuplicateRequests uint32
	MalformedRequests uint32
	InvalidRequests   uint32
	DroppedRequests   uint32
	UnknownTypes      uint32
}

Auth type.

type FreeRADIUSClient

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

FreeRADIUSClient fetches metrics from status server.

func NewFreeRADIUSClient

func NewFreeRADIUSClient(addr string, homeServers []string, secret string, timeout int) (*FreeRADIUSClient, error)

NewFreeRADIUSClient creates an FreeRADIUSClient.

func (*FreeRADIUSClient) Stats

func (f *FreeRADIUSClient) Stats() ([]prometheus.Metric, error)

Stats fetches statistics.

type Internal

type Internal struct {
	QueueLenInternal uint32
	QueueLenProxy    uint32
	QueueLenAuth     uint32
	QueueLenAcct     uint32
	QueueLenDetail   uint32
}

Internal type.

type Server

type Server struct {
	OutstandingRequests uint32
	State               uint32
	TimeOfDeath         time.Time
	TimeOfLife          time.Time
	LastPacketRecv      time.Time
	LastPacketSent      time.Time
	StartTime           time.Time
	HUPTime             time.Time
	EmaWindow           uint32
	EmaUsecWindow1      uint32
	EmaUsecWindow10     uint32
	QueuePPSIn          uint32
	QueuePPSOut         uint32
	QueueUsePercentage  uint32
}

Server specific stats.

type Statistics

type Statistics struct {
	Error           string
	Access          Access
	Auth            Auth
	ProxyAccess     Access
	ProxyAuth       Auth
	Accounting      Accounting
	ProxyAccounting Accounting
	Internal        Internal
	Server          Server
}

Statistics type.

Jump to

Keyboard shortcuts

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