Documentation ¶
Index ¶
- type FilterType
- type RouteTable
- func (r *RouteTable) AddRule(rule *router.TableRule) error
- func (r *RouteTable) AllRules() ([]router.TableRule, []router.TableRule)
- func (r *RouteTable) FetchExtendColumn(schema, table, source string) ([]string, []string)
- func (r *RouteTable) Route(schema, table string) (targetSchema string, targetTable string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterType ¶
type FilterType = int32
FilterType is the type of filter
const ( // TblFilter is table filter TblFilter FilterType = iota + 1 // SchmFilter is schema filter SchmFilter )
type RouteTable ¶
type RouteTable struct {
// contains filtered or unexported fields
}
RouteTable is route table
func NewRegExprRouter ¶
func NewRegExprRouter(caseSensitive bool, rules []*router.TableRule) (*RouteTable, error)
NewRegExprRouter is to create RouteTable
func (*RouteTable) AddRule ¶
func (r *RouteTable) AddRule(rule *router.TableRule) error
AddRule is to add rule
func (*RouteTable) AllRules ¶
func (r *RouteTable) AllRules() ([]router.TableRule, []router.TableRule)
AllRules is to get all rules
func (*RouteTable) FetchExtendColumn ¶
func (r *RouteTable) FetchExtendColumn(schema, table, source string) ([]string, []string)
FetchExtendColumn is to fetch extend column
Click to show internal directories.
Click to hide internal directories.