namingstrategy

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory added in v0.4.0

type Factory func(config *config.Config) (NamingStrategy, error)

type NamingStrategy

type NamingStrategy interface {
	// EventTopicName generates a event topic name for the given schema and table name
	EventTopicName(
		topicPrefix string, schemaName, tableName string,
	) string
	// SchemaTopicName generates a schema topic name for the given schema and table name
	SchemaTopicName(
		topicPrefix string, schemaName, tableName string,
	) string
	// MessageTopicName generates a message topic name for a replication message
	MessageTopicName(
		topicPrefix string,
	) string
}

NamingStrategy represents a strategy to generate topic names for event topics, schema topics, as well as message topics

Jump to

Keyboard shortcuts

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