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 {
ProduceInsistentEvent(ctx context.Context, evt InconsistentEvent) error
}
type SaramaProducer ¶
type SaramaProducer struct {
// contains filtered or unexported fields
}
func NewSaramaProducer ¶
func NewSaramaProducer(p sarama.SyncProducer, topic string) *SaramaProducer
func (*SaramaProducer) ProduceInsistentEvent ¶
func (s *SaramaProducer) ProduceInsistentEvent(ctx context.Context, evt InconsistentEvent) error
Click to show internal directories.
Click to hide internal directories.