Documentation ¶
Index ¶
- Variables
- func CreateKafkaTopic(topic string, addr net.Addr) (err error)
- func KafkaWriteWithBackoff(ctx context.Context, writer *segmentio.Writer, ...) error
- func ReadFileOrURL(name string, s3client s3iface.S3API) ([]byte, error)
- func WriteFileOrURL(name string, contents []byte, s3client s3iface.S3API) error
- type KafkaReader
- type KafkaTestReader
- type RetryReader
Constants ¶
This section is empty.
Variables ¶
View Source
var FileOrURLNotFound = errors.New("file or url does not exist")
Functions ¶
func KafkaWriteWithBackoff ¶
func ReadFileOrURL ¶
ReadFileOrURL reads a path from the filesystem or an s3 URL. The s3client parameter is required if reading an s3 URL. ReadFileOrURL returns FileOrURLNotFound when the local filesystem path or remote s3 location is not found.
Types ¶
type KafkaReader ¶
type KafkaReader interface { FetchMessage(ctx context.Context) (segmentio.Message, error) CommitMessages(ctx context.Context, msgs ...segmentio.Message) error io.Closer }
func BlendKafka ¶
func BlendKafka(in map[string]KafkaReader) KafkaReader
type KafkaTestReader ¶
KafkaTestReader is a testing implementation of the KafkaReader type.
func (*KafkaTestReader) Close ¶
func (r *KafkaTestReader) Close() error
func (*KafkaTestReader) CommitMessages ¶
func (*KafkaTestReader) FetchMessage ¶
type RetryReader ¶
RetryReader wraps a kafka reader with fetch retry logic.
func (RetryReader) FetchMessage ¶
Click to show internal directories.
Click to hide internal directories.