events

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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 InconsistentEvent struct {
	Id        int64
	Direction string // 以哪个源为准 SRC 源表为准 DST 目标表为准
	Type      string
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL