Documentation ¶
Index ¶
- Constants
- func GetDate(p *radius.Packet, typ byte) (time.Time, error)
- func GetIP(p *radius.Packet, typ byte) (string, error)
- func GetInt(p *radius.Packet, typ byte) (value uint32, err error)
- func GetString(p *radius.Packet, typ byte) (string, error)
- func SetValue(p *radius.Packet, typ byte, attr radius.Attribute) (err error)
Constants ¶
View Source
const ( StatisticsType = 127 StatisticsTypeNone = 0 StatisticsTypeAuthentication = 1 StatisticsTypeAccounting = 2 StatisticsTypeProxyAuthentication = 4 StatisticsTypeProxyAccounting = 8 StatisticsTypeInternal = 16 StatisticsTypeClient = 32 StatisticsTypeServer = 64 StatisticsTypeHomeServer = 128 StatisticsTypeAuthAcct = 3 StatisticsTypeProxyAuthAcct = 12 StatisticsTypeAuthAcctProxyAuthAcct = 15 StatisticsTypeAll = 31 )
Statistics types.
View Source
const ( TotalAccessRequests = 128 TotalAccessAccepts = 129 TotalAccessRejects = 130 TotalAccessChallenges = 131 TotalAuthResponses = 132 TotalAuthDuplicateRequests = 133 TotalAuthMalformedRequests = 134 TotalAuthInvalidRequests = 135 TotalAuthDroppedRequests = 136 TotalAuthUnknownTypes = 137 TotalProxyAccessRequests = 138 TotalProxyAccessAccepts = 139 TotalProxyAccessRejects = 140 TotalProxyAccessChallenges = 141 TotalProxyAuthResponses = 142 TotalProxyAuthDuplicateRequests = 143 TotalProxyAuthMalformedRequests = 144 TotalProxyAuthInvalidRequests = 145 TotalProxyAuthDroppedRequests = 146 TotalProxyAuthUnknownTypes = 147 TotalAccountingRequests = 148 TotalAccountingResponses = 149 TotalAcctDuplicateRequests = 150 TotalAcctMalformedRequests = 151 TotalAcctInvalidRequests = 152 TotalAcctDroppedRequests = 153 TotalAcctUnknownTypes = 154 TotalProxyAccountingRequests = 155 TotalProxyAccountingResponses = 156 TotalProxyAcctDuplicateRequests = 157 TotalProxyAcctMalformedRequests = 158 TotalProxyAcctInvalidRequests = 159 TotalProxyAcctDroppedRequests = 160 TotalProxyAcctUnknownTypes = 161 QueueLenInternal = 162 QueueLenProxy = 163 QueueLenAuth = 164 QueueLenAcct = 165 QueueLenDetail = 166 ServerIPAddress = 170 // ipaddr ServerPort = 171 // integer ServerOutstandingRequests = 172 // integer // Alive 0; Zombie 1; Dead 2; Idle 3 ServerState = 173 // integer // When a home server is marked "dead" or "alive" ServerTimeOfDeath = 174 // date ServerTimeOfLife = 175 // date StartTime = 176 // date HUPTime = 177 // date EmaWindow = 178 // integer EmaUsecWindow1 = 179 // integer EmaUsecWindow10 = 180 // integer QueuePPSIn = 181 // integer QueuePPSOut = 182 // integer QueueUsePercentage = 183 // integer LastPacketRecv = 184 // date LastPacketSent = 185 // date StatsError = 187 // string )
Statistics attributes.
View Source
const (
VendorID = 11344
)
FreeRADIUS vendor ID.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.