Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { KafkaAddr []string // the CommitTs of binlog return by reader will bigger than the config CommitTs CommitTS int64 Offset int64 // start at kafka offset // if Topic is empty, use the default name in drainer <ClusterID>_obinlog Topic string ClusterID string }
Config for Reader
type KafkaSeeker ¶
type KafkaSeeker struct {
// contains filtered or unexported fields
}
KafkaSeeker seeks offset in kafka topics by given condition
func NewKafkaSeeker ¶
func NewKafkaSeeker(addr []string, config *sarama.Config) (*KafkaSeeker, error)
NewKafkaSeeker creates an instance of KafkaSeeker
Click to show internal directories.
Click to hide internal directories.