Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
Table routes schema/table to target schema/table by given route rules
func NewTableRouter ¶
NewTableRouter returns a table router
func (*Table) AddRule ¶
AddRule adds a rule into table router
func (*Table) RemoveRule ¶
RemoveRule removes a rule from table router
func (*Table) Route ¶
Route routes schema/table to target schema/table don't support to route schema/table to multiple schema/table
type TableRule ¶
type TableRule struct { SchemaPattern string `json:"schema-pattern" toml:"schema-pattern" yaml:"schema-pattern"` TablePattern string `json:"table-pattern" toml:"table-pattern" yaml:"table-pattern"` TargetSchema string `json:"target-schema" toml:"target-schema" yaml:"target-schema"` TargetTable string `json:"target-table" toml:"target-table" yaml:"target-table"` }
TableRule is a rule to route schema/table to target schema/table pattern format refers 'pkg/table-rule-selector'
Click to show internal directories.
Click to hide internal directories.