task

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 Notificator

type Notificator interface {
	NotifyBaseReplicationEventHandler(
		fn func(handler eventhandlers.BaseReplicationEventHandler) error,
	)
	NotifySystemCatalogReplicationEventHandler(
		fn func(handler eventhandlers.SystemCatalogReplicationEventHandler) error,
	)
	NotifyCompressionReplicationEventHandler(
		fn func(handler eventhandlers.CompressionReplicationEventHandler) error,
	)
	NotifyRecordReplicationEventHandler(
		fn func(handler eventhandlers.RecordReplicationEventHandler) error,
	)
	NotifyLogicalReplicationEventHandler(
		fn func(handler eventhandlers.LogicalReplicationEventHandler) error,
	)
	NotifySnapshottingEventHandler(
		fn func(handler eventhandlers.SnapshottingEventHandler) error,
	)
}

type Task

type Task = func(notificator Notificator)

type TaskManager

type TaskManager interface {
	StartDispatcher()
	StopDispatcher() error
	RegisterReplicationEventHandler(
		handler eventhandlers.BaseReplicationEventHandler,
	)
	EnqueueTask(
		task Task,
	) error
	RunTask(
		task Task,
	) error
	EnqueueTaskAndWait(
		task Task,
	) error
}

Jump to

Keyboard shortcuts

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