Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InconsistentEventTypeTargetMissing target 中没有数据 InconsistentEventTypeTargetMissing = "target_missing" // InconsistentEventTypeNotEqual 目标表和源表的数据不相等 InconsistentEventTypeNotEqual = "neq" // InconsistentEventTypeBaseMissing base 中没有数据 InconsistentEventTypeBaseMissing = "base_missing" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InconsistentEvent ¶
type Producer ¶
type Producer interface {
ProduceInconsistentEvent(ctx context.Context, event InconsistentEvent) error
}
type SaramaProducer ¶
type SaramaProducer struct {
// contains filtered or unexported fields
}
func NewSaramaProducer ¶
func NewSaramaProducer(p sarama.SyncProducer, topic string) *SaramaProducer
func (*SaramaProducer) ProduceInconsistentEvent ¶
func (s *SaramaProducer) ProduceInconsistentEvent(ctx context.Context, event InconsistentEvent) error
Click to show internal directories.
Click to hide internal directories.