source

package
v0.0.0-...-2b644c5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kafka

type Kafka struct {
	Version string   `yaml:"version"`
	Brokers []string `yaml:"brokers"`
	Topics  []string `yaml:"topics"`
	Group   string   `yaml:"group"`

	Assignor string `yaml:"assignor"`
	Newest   bool   `yaml:"newest"`

	OutC chan interface{} `yaml:"-"`
}

func (*Kafka) ReadChan

func (s *Kafka) ReadChan() chan interface{}

func (*Kafka) Start

func (s *Kafka) Start(ctx context.Context, _ *http.ServeMux) error

type Mysql

type Mysql struct {
	DSN           string   `yaml:"dsn"`
	BinPosition   string   `yaml:"binPosition"`
	Tables        []string `yaml:"tables"`
	SyncMarkTable string   `yaml:"syncMarkTable"`
	SyncChannel   string   `yaml:"syncChannel"`

	OutC chan interface{} `yaml:"-"`
}

func (Mysql) ReadChan

func (s Mysql) ReadChan() chan interface{}

func (*Mysql) Start

func (s *Mysql) Start(ctx context.Context, _ *http.ServeMux) error

type Noop

type Noop struct {
	OutC chan interface{} `yaml:"-"`
}

func (Noop) ReadChan

func (s Noop) ReadChan() chan interface{}

func (*Noop) Start

func (s *Noop) Start(ctx context.Context, handler *http.ServeMux) error

Jump to

Keyboard shortcuts

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