Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ClusterName string `yaml:"clusterName"` TargetNamespace string `yaml:"namespace"` MaxEventAge time.Duration `yaml:"maxEventAge"` BufferSize int `yaml:"bufferSize"` Kafka *KafkaConfig `yaml:"kafka"` Filters []processor.Filter `yaml:"filters"` Selectors []processor.Selector `yaml:"selectors"` }
func (*Config) GetCluster ¶
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
type KafkaConfig ¶
type KafkaConfig struct { Brokers []string `yaml:"brokers"` Topic string `yaml:"topic"` RawCompression string `yaml:"compression" default:"none"` RawTLS *RawTLSData `yaml:"tls"` RawSASL *RawSASLData `yaml:"sasl"` }
func (*KafkaConfig) GetCompression ¶
func (c *KafkaConfig) GetCompression() (kafka.Compression, error)
func (*KafkaConfig) Validate ¶
func (c *KafkaConfig) Validate() error
type RawSASLData ¶
type RawSASLData struct { Username string `yaml:"username"` Password string `yaml:"password"` Mechanism string `yaml:"mechanism" default:"plain"` }
func (*RawSASLData) Validate ¶
func (r *RawSASLData) Validate() error
Click to show internal directories.
Click to hide internal directories.