input

package
v1.1.17-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	OutChan chan *message.Message
	Options *Options
	// contains filtered or unexported fields
}

Input read binlog event from mysql

func New

func New(opts ...Option) (input *Input, err error)

New returns a new Input

func (*Input) Closed added in v1.1.3

func (r *Input) Closed() chan struct{}

func (*Input) Run

func (r *Input) Run(ctx context.Context) (err error)

Run Input start working

type Option

type Option func(options *Options)

Option is function of configure Options

func OptionsNodeName

func OptionsNodeName(name string) Option

OptionsNodeName sets Options pipeline node name

func OptionsPipeName

func OptionsPipeName(name string) Option

OptionsPipeName sets Options pipeline name

type Options

type Options struct {
	PipeName string
	NodeName string
}

Options for Input Options

Jump to

Keyboard shortcuts

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