Documentation ¶
Index ¶
- Constants
- func CmpIP4s(a, b IP4s) bool
- func ParseIP(ip string) ([4]byte, bool)
- type Check
- type Checks
- type Counters
- type IP4
- type IP4s
- type IP6
- type L4
- type Logger
- type MAC
- type NET
- type NIC
- type NilLogger
- func (l *NilLogger) ALERT(f string, e ...interface{})
- func (l *NilLogger) CRIT(f string, e ...interface{})
- func (l *NilLogger) DEBUG(f string, e ...interface{})
- func (l *NilLogger) EMERG(f string, e ...interface{})
- func (l *NilLogger) ERR(f string, e ...interface{})
- func (l *NilLogger) INFO(f string, e ...interface{})
- func (l *NilLogger) NOTICE(f string, e ...interface{})
- func (l *NilLogger) WARNING(f string, e ...interface{})
- type Protocol
- type RHI
- type Scounters
- type Thruple
Constants ¶
View Source
const IPPROTO_TCP = 0x06
View Source
const IPPROTO_UDP = 0x11
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counters ¶
type Counters struct { Up bool `json:"up"` MAC MAC `json:"mac"` Concurrent int64 `json:"current_connections"` New_flows uint64 `json:"total_connections"` Rx_packets uint64 `json:"rx_packets"` Rx_octets uint64 `json:"rx_octets"` Qfailed uint64 `json:"-"` Fp_count uint64 `json:"-"` Fp_time uint64 `json:"-"` Ip IP4 `json:"-"` Latency uint64 `json:"-"` DEFCON uint8 `json:"-"` Rx_pps uint64 `json:"rx_packets_per_second"` Rx_bps uint64 `json:"rx_octets_per_second"` Timestamp time.Time `json:"-"` Vlan uint16 `json:"-"` }
type IP4 ¶
type IP4 [4]byte
func (IP4) MarshalJSON ¶
func (IP4) MarshalText ¶
func (*IP4) UnmarshalJSON ¶
func (*IP4) UnmarshalText ¶
type Scounters ¶
type Scounters struct { Name string `json:"name"` Description string `json:"description"` Up bool `json:"up"` Nalive uint `json:"live_backends"` Need uint `json:"need_backends"` Concurrent int64 `json:"current_connections"` New_flows uint64 `json:"total_connections"` Rx_packets uint64 `json:"rx_packets"` Rx_octets uint64 `json:"rx_octets"` Rx_pps uint64 `json:"rx_packets_per_second"` Rx_bps uint64 `json:"rx_octets_per_second"` Backends map[string]Counters `json:"backends"` VIP IP4 `json:"vip"` Port uint16 `json:"port"` Protocol Protocol `json:"protocol"` Delete bool `json:"-"` }
Click to show internal directories.
Click to hide internal directories.