Documentation ¶
Index ¶
- func GetEncoderConfig(changefeedID model.ChangeFeedID, sinkURI *url.URL, protocol config.Protocol, ...) (*common.Config, error)
- func GetFileExtension(protocol config.Protocol) string
- func GetProtocol(protocolStr string) (config.Protocol, error)
- func GetTopic(sinkURI *url.URL) (string, error)
- func GetTopicManagerAndTryCreateTopic(ctx context.Context, changefeedID model.ChangeFeedID, topic string, ...) (manager.TopicManager, error)
- func IsPulsarSupportedProtocols(p config.Protocol) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEncoderConfig ¶
func GetEncoderConfig( changefeedID model.ChangeFeedID, sinkURI *url.URL, protocol config.Protocol, replicaConfig *config.ReplicaConfig, maxMsgBytes int, ) (*common.Config, error)
GetEncoderConfig returns the encoder config and validates the config.
func GetFileExtension ¶
GetFileExtension returns the extension for specific protocol
func GetProtocol ¶
GetProtocol returns the protocol from the sink URI.
func GetTopicManagerAndTryCreateTopic ¶
func GetTopicManagerAndTryCreateTopic( ctx context.Context, changefeedID model.ChangeFeedID, topic string, topicCfg *kafka.AutoCreateTopicConfig, adminClient kafka.ClusterAdminClient, ) (manager.TopicManager, error)
GetTopicManagerAndTryCreateTopic returns the topic manager and try to create the topic.
func IsPulsarSupportedProtocols ¶
IsPulsarSupportedProtocols returns whether the protocol is supported by pulsar.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.