Versions in this module Expand all Collapse all v0 v0.1.0 Jun 2, 2022 Changes in this version + var ErrNoInputConfigured = errors.New("no input configured") + var ErrNoOutputConfigured = errors.New("no output configured") + var ErrNoPortConfiguredForInput = errors.New("no port configured for input") + var ErrNoPortConfiguredForServerOutput = errors.New("no port configured for server output") + func ValidateReceiverConfig(config *Config) error + func ValidateSensorConfig(config *Config) error + type AuthConfig struct + Enable bool + Key string + type Config struct + Auth AuthConfig + CaptureInterfacesPorts map[string][]int + CapturePorts []int + IgnorePorts []int + Input *InputConfig + InputPacketLen int + LogFilename string + MaxEncodedLen int + MaxGatherLen int + MaxHeaderLen int + MaxPayloadLen int + Output OutputConfig + PcapMode PcapMode + SamplingRate SamplingRateConfig + TLS TLSConfig + func NewConfig(configFileName string) (*Config, error) + type FileOutputConfig struct + Path string + type InputConfig struct + Address string + Port *int + type KafkaOutputRawConfig struct + Acks *string + Brokers string + ClientId *string + FileSize *string + MessageSize *string + Topic *string + type KafkaPluginConfig struct + Acks string + Brokers string + ClientId string + FileSize *bytesize.ByteSize + MessageSize *bytesize.ByteSize + Topic string + type OutputConfig struct + File *FileOutputConfig + Plugins *PluginsConfig + Server *ServerOutputConfig + type OutputRawConfig struct + File *FileOutputConfig + Plugins *PluginsRawConfig + Server *ServerOutputConfig + type PcapMode int + const All + const Allow + const Deny + type PluginsConfig struct + Kafka *KafkaPluginConfig + S3 *S3PluginConfig + type PluginsRawConfig struct + Kafka *KafkaOutputRawConfig + S3 *S3OutputRawConfig + type RawConfig struct + Auth AuthConfig + CaptureInterfacesPorts map[string][]int + CapturePorts []int + CompressBlockSize *int + IgnorePorts []int + Input *InputConfig + InputPacketLen *int + LogFilename string + Output *OutputRawConfig + PcapMode string + TLS TLSConfig + type S3OutputRawConfig struct + Bucket string + CannedACL *string + Region string + TotalFileSize *string + UploadChunkSize *string + UploadTimeout *string + type S3PluginConfig struct + Bucket string + CannedACL string + Region string + TotalFileSize *bytesize.ByteSize + UploadChunkSize *bytesize.ByteSize + UploadTimeout time.Duration + type SamplingRateConfig struct + MaxPktsToWrite int + MaxTotalPkts int + type ServerOutputConfig struct + Address string + Port *int + type TLSConfig struct + CertFile string + Enable bool + KeyFile string