bridge

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRuleNotExist = errors.New("rule is not exist")

Functions

This section is empty.

Types

type Bridge

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

func New

func New(cfg *config.Config, ehFactory EventHandlerFactory, logger zerolog.Logger) (*Bridge, error)

func (*Bridge) Close

func (b *Bridge) Close() error

func (*Bridge) Delay

func (b *Bridge) Delay() uint32

func (*Bridge) Dumping

func (b *Bridge) Dumping() bool

func (*Bridge) Run

func (b *Bridge) Run() error

Run syncs the data from MySQL and inserts to another MySQL until closed or meets errors.

func (*Bridge) Running

func (b *Bridge) Running() bool

func (*Bridge) WaitDumpDone added in v1.1.6

func (b *Bridge) WaitDumpDone() <-chan struct{}

type EventHandlerFactory

type EventHandlerFactory interface {
	New(name, cfgPath string) (mymy.EventHandler, error)
}

func NewEventHandlerPluginFactory

func NewEventHandlerPluginFactory(pluginDir string) EventHandlerFactory

type EventHandlerPluginFactory

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

func (*EventHandlerPluginFactory) New

func (f *EventHandlerPluginFactory) New(name, cfgPath string) (mymy.EventHandler, error)

Jump to

Keyboard shortcuts

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