routers

package
v0.9.49 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticsearchRoute added in v0.9.35

type ElasticsearchRoute struct {
	RouteMatchers
	TargetIndex        string
	TargetType         string
	IgnoreNoPrimaryKey bool
}

func NewElasticsearchRoutes added in v0.9.35

func NewElasticsearchRoutes(configData []map[string]interface{}) ([]*ElasticsearchRoute, error)

type ElasticsearchRouter added in v0.9.35

type ElasticsearchRouter []*ElasticsearchRoute

func (ElasticsearchRouter) Exists added in v0.9.35

func (r ElasticsearchRouter) Exists(msg *core.Msg) bool

func (ElasticsearchRouter) Match added in v0.9.35

type KafkaRoute

type KafkaRoute struct {
	RouteMatchers
	DMLTargetTopic string
}

func NewKafkaRoutes

func NewKafkaRoutes(configData []map[string]interface{}) ([]*KafkaRoute, error)

type KafkaRouter added in v0.9.17

type KafkaRouter []*KafkaRoute

func (KafkaRouter) Exists added in v0.9.17

func (r KafkaRouter) Exists(msg *core.Msg) bool

type MySQLRoute

type MySQLRoute struct {
	RouteMatchers
	TargetSchema string
	TargetTable  string
}

func NewMySQLRoutes

func NewMySQLRoutes(configData []map[string]interface{}) ([]*MySQLRoute, error)

func (*MySQLRoute) GetTarget

func (route *MySQLRoute) GetTarget(msgSchema string, msgTable string) (string, string)

type MySQLRouter added in v0.9.17

type MySQLRouter []*MySQLRoute

func (MySQLRouter) Exists added in v0.9.17

func (r MySQLRouter) Exists(msg *core.Msg) bool

type RouteMatchers

type RouteMatchers struct {
	AllMatchers []core.IMatcher
}

func (RouteMatchers) Match

func (r RouteMatchers) Match(msg *core.Msg) bool

Jump to

Keyboard shortcuts

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