Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DDLDispatchRule ¶
type DDLDispatchRule int
DDLDispatchRule is the dispatch rule for DDL event.
const ( // PartitionZero means the DDL event will be dispatched to partition 0. // NOTICE: Only for canal and canal-json protocol. PartitionZero DDLDispatchRule = iota // PartitionAll means the DDL event will be broadcast to all the partitions. PartitionAll )
type DDLSink ¶
type DDLSink struct {
// contains filtered or unexported fields
}
DDLSink is a sink that sends DDL events to the MQ system.
func NewKafkaDDLSink ¶
func NewKafkaDDLSink( ctx context.Context, changefeedID model.ChangeFeedID, sinkURI *url.URL, replicaConfig *config.ReplicaConfig, factoryCreator kafka.FactoryCreator, producerCreator ddlproducer.Factory, ) (_ *DDLSink, err error)
NewKafkaDDLSink will verify the config and create a Kafka DDL Sink.
func NewPulsarDDLSink ¶
func NewPulsarDDLSink( ctx context.Context, changefeedID model.ChangeFeedID, sinkURI *url.URL, replicaConfig *config.ReplicaConfig, pulsarTopicManagerCreator manager.PulsarTopicManager, clientCreator pulsarConfig.FactoryCreator, producerCreator ddlproducer.PulsarFactory, ) (_ *DDLSink, err error)
NewPulsarDDLSink will verify the config and create a Pulsar DDL Sink.
Click to show internal directories.
Click to hide internal directories.