Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultBatchSize = 1
)
Variables ¶
This section is empty.
Functions ¶
func Read ¶
Read is the entry point function for performing read operations in Kafka.
This is where we verify that the provided arguments and flag combination makes sense/are valid; this is also where we will perform our initial conn.
Types ¶
type IKafkaRelayer ¶ added in v0.10.0
type IKafkaRelayer interface {
Relay() error
}
type Kafka ¶
type Kafka struct { Id string Reader *skafka.Reader Writer *skafka.Writer Options *cli.Options MsgDesc *desc.MessageDescriptor // contains filtered or unexported fields }
Kafka holds all attributes required for performing a write to Kafka. This struct should be instantiated via the kafka.Read(..) func.
type KafkaReader ¶ added in v0.8.1
type KafkaWriter ¶ added in v0.8.1
Click to show internal directories.
Click to hide internal directories.