Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Main ¶
type Main struct { idk.Main `flag:"!embed"` idk.ConfluentCommand `flag:"!embed"` Group string `help:"Kafka group."` Topics []string `help:"Kafka topics to read from."` Timeout time.Duration `help:"Time to wait for more records from Kafka before flushing a batch. 0 to disable."` SkipOld bool `short:"" help:"Skip to the most recent Kafka message rather than starting at the beginning."` Header string `help:"Path to the static schema, in JSON header format."` AllowMissingFields bool `help:"Will proceed with ingest even if a field is missing from a record but specified in the JSON config file. Default false"` ConfigMap *confluent.ConfigMap `flag:"-"` }
func (*Main) CopyIn ¶
func (m *Main) CopyIn(config idk.ConfluentCommand)
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
func (*Record) StreamOffset ¶
type Source ¶
type Source struct { idk.ConfluentCommand Topics []string Group string Log logger.Logger Timeout time.Duration SkipOld bool Header string AllowMissingFields bool ConfigMap *confluent.ConfigMap // contains filtered or unexported fields }
Source implements the idk.Source interface using kafka as a data source. It is not threadsafe! Due to the way Kafka clients work, to achieve concurrency, create multiple Sources.
func (*Source) CommitMessages ¶
func (s *Source) CommitMessages(recs []confluent.TopicPartition) ([]confluent.TopicPartition, error)
Click to show internal directories.
Click to hide internal directories.