sources

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileSource

func NewFileSource(path, readFrom string, parsers []parsers.Parser, receivers []processors.StreamingProcessor) fileSource

func NewKafkaSource

func NewKafkaSource(config KafkaSourceConfig, parsers []parsers.Parser) kafkaSource

Types

type FileSourceConfig

type FileSourceConfig struct {
	Path     string `yaml:"path"`
	ReadFrom string `yaml:"read-from"`
}

type KafkaSaslConfig

type KafkaSaslConfig struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type KafkaSourceConfig

type KafkaSourceConfig struct {
	Brokers            string           `yaml:"brokers"`
	Tls                bool             `yaml:"tls"`
	GroupID            string           `yaml:"group-id"`
	Topic              string           `yaml:"topic"`
	MinBytes           int              `yaml:"min-bytes"`
	MaxBytes           int              `yaml:"max-bytes"`
	CommitInterval     time.Duration    `yaml:"commit-interval"`
	Timeout            time.Duration    `yaml:"timeout"`
	StartFromBeginning bool             `yaml:"start-from-beginning"`
	SaslConfig         *KafkaSaslConfig `yaml:"sasl-config"`
}

type Source

type Source interface {
	AddProcessors([]processors.StreamingProcessor)
	Run(context.Context, *sync.WaitGroup)
	Close()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL