Documentation
¶
Index ¶
- type KafkaBatchConfiguration
- type KafkaConfiguration
- type KafkaSource
- func (*KafkaSource) CanRun() error
- func (k *KafkaSource) Configure(yamlConfig []byte, logger *log.Entry, ...) error
- func (*KafkaSource) ConfigureByDSN(string, map[string]string, *log.Entry, string) error
- func (k *KafkaSource) Dump() any
- func (*KafkaSource) GetAggregMetrics() []prometheus.Collector
- func (*KafkaSource) GetMetrics() []prometheus.Collector
- func (k *KafkaSource) GetMode() string
- func (*KafkaSource) GetName() string
- func (k *KafkaSource) GetUuid() string
- func (*KafkaSource) OneShotAcquisition(_ context.Context, _ chan types.Event, _ *tomb.Tomb) error
- func (k *KafkaSource) ReadMessage(ctx context.Context, out chan types.Event) error
- func (k *KafkaSource) RunReader(ctx context.Context, out chan types.Event, t *tomb.Tomb) error
- func (k *KafkaSource) StreamingAcquisition(ctx context.Context, out chan types.Event, t *tomb.Tomb) error
- func (k *KafkaSource) UnmarshalConfig(yamlConfig []byte) error
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaBatchConfiguration ¶ added in v1.6.9
type KafkaConfiguration ¶
type KafkaConfiguration struct {
Brokers []string `yaml:"brokers"`
Topic string `yaml:"topic"`
GroupID string `yaml:"group_id"`
Partition int `yaml:"partition"`
Timeout string `yaml:"timeout"`
TLS *TLSConfig `yaml:"tls"`
BatchConfiguration KafkaBatchConfiguration `yaml:"batch"`
configuration.DataSourceCommonCfg `yaml:",inline"`
}
func (*KafkaConfiguration) NewDialer ¶
func (kc *KafkaConfiguration) NewDialer() (*kafka.Dialer, error)
func (*KafkaConfiguration) NewTLSConfig ¶
func (kc *KafkaConfiguration) NewTLSConfig() (*tls.Config, error)
type KafkaSource ¶
type KafkaSource struct {
Config KafkaConfiguration
Reader *kafka.Reader
// contains filtered or unexported fields
}
func (*KafkaSource) CanRun ¶
func (*KafkaSource) CanRun() error
func (*KafkaSource) Configure ¶
func (k *KafkaSource) Configure(yamlConfig []byte, logger *log.Entry, metricsLevel metrics.AcquisitionMetricsLevel) error
func (*KafkaSource) ConfigureByDSN ¶
func (*KafkaSource) Dump ¶
func (k *KafkaSource) Dump() any
func (*KafkaSource) GetAggregMetrics ¶
func (*KafkaSource) GetAggregMetrics() []prometheus.Collector
func (*KafkaSource) GetMetrics ¶
func (*KafkaSource) GetMetrics() []prometheus.Collector
func (*KafkaSource) GetMode ¶
func (k *KafkaSource) GetMode() string
func (*KafkaSource) GetName ¶
func (*KafkaSource) GetName() string
func (*KafkaSource) GetUuid ¶ added in v1.5.0
func (k *KafkaSource) GetUuid() string
func (*KafkaSource) OneShotAcquisition ¶
func (*KafkaSource) ReadMessage ¶
func (*KafkaSource) StreamingAcquisition ¶
func (*KafkaSource) UnmarshalConfig ¶ added in v1.5.0
func (k *KafkaSource) UnmarshalConfig(yamlConfig []byte) error
Click to show internal directories.
Click to hide internal directories.