Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TcpFlagsToByte ¶
Types ¶
type Counter ¶
type Counter struct {
Label string `yaml:"label"`
SrcPort uint16 `yaml:"src_port"`
DstPort uint16 `yaml:"dst_port"`
TcpFlags []TcpFlag `yaml:"tcp_flags"`
Protocol Protocol `yaml:"protocol"`
SrcAddr netip.Addr `yaml:"src_addr"`
DstAddr netip.Addr `yaml:"dst_addr"`
Dir string // internal field to denote "input" or "output"
Packets uint64 // internal field to hold counter value
Bytes uint64 // internal field to hold byte count
}
type NFTables ¶
type NFTables struct {
Family TableFamily `yaml:"family"`
TableName string `yaml:"table_name"`
ChainPriority int32 `yaml:"chain_priority"`
}
type OTLP ¶
type OTLP struct {
Endpoint string `yaml:"endpoint"`
Protocol OTLPProtocol `yaml:"protocol"`
TLS *TLSConfig `yaml:"tls_config,omitempty"`
}
type OTLPProtocol ¶
type OTLPProtocol string
const ( OTLPProtocolGRPC OTLPProtocol = "grpc" OTLPProtocolHTTP OTLPProtocol = "http" OTLPProtocolStdout OTLPProtocol = "stdout" )
func (*OTLPProtocol) UnmarshalYAML ¶
func (p *OTLPProtocol) UnmarshalYAML(unmarshal func(interface{}) error) error
type Protocol ¶
type Protocol uint8
const ( ProtocolTCP Protocol = unix.IPPROTO_TCP ProtocolUDP Protocol = unix.IPPROTO_UDP ProtocolICMP Protocol = unix.IPPROTO_ICMP ProtocolICMPv6 Protocol = unix.IPPROTO_ICMPV6 )
func ProtocolFromString ¶
func (*Protocol) UnmarshalYAML ¶
type TableFamily ¶
type TableFamily uint8
const ( TableFamilyIPv4 TableFamily = unix.NFPROTO_IPV4 TableFamilyIPv6 TableFamily = unix.NFPROTO_IPV6 // Not yet supported TableFamilyInet TableFamily = unix.NFPROTO_INET )
func TableFamilyFromString ¶
func TableFamilyFromString(s string) TableFamily
func (TableFamily) String ¶
func (f TableFamily) String() string
func (*TableFamily) UnmarshalYAML ¶
func (f *TableFamily) UnmarshalYAML(unmarshal func(interface{}) error) error
type TcpFlag ¶
type TcpFlag uint8
func TcpFlagFromString ¶
func TcpFlagsFromByte ¶
func (*TcpFlag) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.