Documentation ¶
Index ¶
- func DurationOr(a, b time.Duration) time.Duration
- func Filter(tables []string, f func(string) bool) []string
- func Map(ss []string) map[string]bool
- func MapKeys(m map[string]bool) []string
- func MaxBytes(b []byte, n int) []byte
- func Or(a, b string) string
- func OrInt(a, b int) int
- func Purify(ss []string) []string
- func SliceContainsFold(ss []string, a string, emptyYes bool) (string, bool)
- type PosValue
- type TableFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PosValue ¶
func ParsePosition ¶
type TableFilter ¶
type TableFilter struct { // IncludeTables or ExcludeTables should contain database name // Only a table which matches IncludeTables and dis-matches ExcludeTables will be processed // eg, ExcludeTables : ["*.canal"], ExcludeTables : ["mysql.*"] // this will include all database's 'canal' table, except database 'mysql' // Default IncludeTables and ExcludeTables are empty, this will include all tables IncludeTables, ExcludeTables []string SyncMarkTable string }
func NewTableFilter ¶
func NewTableFilter(tables []string, syncMarkTable string) (*TableFilter, error)
func (*TableFilter) Matches ¶
func (c *TableFilter) Matches(key string) bool
Click to show internal directories.
Click to hide internal directories.