replication

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: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DynamicModule = wiring.DefineModule(
	"Dynamic",
	func(module wiring.Module) {
		module.Provide(func(c *config.Config) (statestorage.Storage, error) {
			name := config.GetOrDefault(c, config.PropertyStateStorageType, config.NoneStorage)
			return statestorage.NewStateStorage(name, c)
		})

		module.Provide(func(c *config.Config) (namingstrategy.NamingStrategy, error) {
			name := config.GetOrDefault(c, config.PropertyNamingStrategy, config.Debezium)
			return namingstrategyimpl.NewNamingStrategy(name, c)
		})

		module.Provide(func(c *config.Config) (sink.Sink, error) {
			name := config.GetOrDefault(c, config.PropertySink, config.Stdout)
			return sinkimpl.NewSink(name, c)
		})
	},
)

Functions

func OverridesModule added in v0.4.0

func OverridesModule(
	config *sysconfig.SystemConfig,
) wiring.Module

Types

type Replicator

type Replicator struct {
	// contains filtered or unexported fields
}

Replicator is the main controller for all things logical replication, such as the logical replication connection, the side channel connection, and other services necessary to run the event stream generation.

func NewReplicator

func NewReplicator(
	config *sysconfig.SystemConfig,
) (*Replicator, error)

NewReplicator instantiates a new instance of the Replicator.

func (*Replicator) StartReplication

func (r *Replicator) StartReplication() *cli.ExitError

StartReplication initiates the actual replication process

func (*Replicator) StopReplication

func (r *Replicator) StopReplication() *cli.ExitError

StopReplication initiates a clean shutdown of the replication process. This call blocks until the shutdown process has finished.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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