regexprrouter

package
v1.1.0-beta.0...-985609a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func (*RouteTable) Route

func (r *RouteTable) Route(schema, table string) (targetSchema string, targetTable string, err error)

Route is to route table

Jump to

Keyboard shortcuts

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