Documentation ¶
Index ¶
- Constants
- func NewNetworkAnalyzer(cfg interface{}, telemetry *component.TelemetryTools, ...) analyzer.Analyzer
- type Config
- type DataGroupPool
- type DnsUdpCache
- type NetworkAnalyzer
- func (na *NetworkAnalyzer) ConsumableEvents() []string
- func (na *NetworkAnalyzer) ConsumeEvent(evt *model.KindlingEvent) error
- func (na *NetworkAnalyzer) ConsumeEventFromChannel()
- func (na *NetworkAnalyzer) Shutdown() error
- func (na *NetworkAnalyzer) Start() error
- func (na *NetworkAnalyzer) Type() analyzer.Type
- type ProtocolConfig
- type SimpleDataGroupPool
Constants ¶
View Source
const ( CACHE_ADD_THRESHOLD = 50 CACHE_RESET_THRESHOLD = 5000 Network analyzer.Type = "networkanalyzer" )
Variables ¶
This section is empty.
Functions ¶
func NewNetworkAnalyzer ¶
Types ¶
type Config ¶
type Config struct { // This option is set only for testing. We enable it by default otherwise the function will not work. EnableTimeoutCheck bool EventChannelSize int `mapstructure:"event_channel_size"` ConnectTimeout int `mapstructure:"connect_timeout"` FdReuseTimeout int `mapstructure:"fd_reuse_timeout"` NoResponseThreshold int `mapstructure:"no_response_threshold"` // unit is ms ResponseSlowThreshold int `mapstructure:"response_slow_threshold"` EnableConntrack bool `mapstructure:"enable_conntrack"` IgnoreDnsRcode3Error bool `mapstructure:"ignore_dns_rcode3_error"` ConntrackMaxStateSize int `mapstructure:"conntrack_max_state_size"` ConntrackRateLimit int `mapstructure:"conntrack_rate_limit"` ProcRoot string `mapstructure:"proc_root"` ProtocolParser []string `mapstructure:"protocol_parser"` ProtocolConfigs []ProtocolConfig `mapstructure:"protocol_config,omitempty"` UrlClusteringMethod string `mapstructure:"url_clustering_method"` }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
func (*Config) GetConnectTimeout ¶
func (*Config) GetFdReuseTimeout ¶
type DataGroupPool ¶
func NewDataGroupPool ¶
func NewDataGroupPool() DataGroupPool
type DnsUdpCache ¶
type DnsUdpCache struct {
// contains filtered or unexported fields
}
type NetworkAnalyzer ¶
type NetworkAnalyzer struct {
// contains filtered or unexported fields
}
func (*NetworkAnalyzer) ConsumableEvents ¶
func (na *NetworkAnalyzer) ConsumableEvents() []string
func (*NetworkAnalyzer) ConsumeEvent ¶
func (na *NetworkAnalyzer) ConsumeEvent(evt *model.KindlingEvent) error
func (*NetworkAnalyzer) ConsumeEventFromChannel ¶
func (na *NetworkAnalyzer) ConsumeEventFromChannel()
func (*NetworkAnalyzer) Shutdown ¶
func (na *NetworkAnalyzer) Shutdown() error
func (*NetworkAnalyzer) Start ¶
func (na *NetworkAnalyzer) Start() error
func (*NetworkAnalyzer) Type ¶
func (na *NetworkAnalyzer) Type() analyzer.Type
type ProtocolConfig ¶
type SimpleDataGroupPool ¶
type SimpleDataGroupPool struct {
// contains filtered or unexported fields
}
func (*SimpleDataGroupPool) Free ¶
func (p *SimpleDataGroupPool) Free(dataGroup *model.DataGroup)
func (*SimpleDataGroupPool) Get ¶
func (p *SimpleDataGroupPool) Get() *model.DataGroup
Source Files ¶
Click to show internal directories.
Click to hide internal directories.