Documentation
¶
Index ¶
- type Configuration
- type KafkaBatchConfiguration
- type Source
- func (*Source) CanRun() error
- func (s *Source) Configure(_ context.Context, yamlConfig []byte, logger *log.Entry, ...) error
- func (s *Source) Dump() any
- func (*Source) GetAggregMetrics() []prometheus.Collector
- func (*Source) GetMetrics() []prometheus.Collector
- func (s *Source) GetMode() string
- func (*Source) GetName() string
- func (s *Source) GetUuid() string
- func (s *Source) ReadMessage(ctx context.Context, out chan pipeline.Event) error
- func (s *Source) RunReader(ctx context.Context, out chan pipeline.Event, t *tomb.Tomb) error
- func (s *Source) StreamingAcquisition(ctx context.Context, out chan pipeline.Event, t *tomb.Tomb) error
- func (s *Source) UnmarshalConfig(yamlConfig []byte) error
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶ added in v1.7.4
type Configuration 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 (*Configuration) NewDialer ¶ added in v1.7.4
func (c *Configuration) NewDialer() (*kafka.Dialer, error)
func (*Configuration) NewTLSConfig ¶ added in v1.7.4
func (c *Configuration) NewTLSConfig() (*tls.Config, error)
type KafkaBatchConfiguration ¶ added in v1.6.9
type Source ¶ added in v1.7.4
type Source struct {
Config Configuration
Reader *kafka.Reader
// contains filtered or unexported fields
}
func (*Source) GetAggregMetrics ¶ added in v1.7.4
func (*Source) GetAggregMetrics() []prometheus.Collector
func (*Source) GetMetrics ¶ added in v1.7.4
func (*Source) GetMetrics() []prometheus.Collector
func (*Source) ReadMessage ¶ added in v1.7.4
func (*Source) StreamingAcquisition ¶ added in v1.7.4
func (*Source) UnmarshalConfig ¶ added in v1.7.4
Click to show internal directories.
Click to hide internal directories.