regexprrouter

package
v6.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 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
const (
	TblFilter FilterType = iota + 1
	SchmFilter
)

type RouteTable

type RouteTable struct {
	// contains filtered or unexported fields
}

func NewRegExprRouter

func NewRegExprRouter(caseSensitive bool, rules []*router.TableRule) (*RouteTable, error)

func (*RouteTable) AddRule

func (r *RouteTable) AddRule(rule *router.TableRule) error

func (*RouteTable) AllRules

func (r *RouteTable) AllRules() ([]router.TableRule, []router.TableRule)

func (*RouteTable) FetchExtendColumn

func (r *RouteTable) FetchExtendColumn(schema, table, source string) ([]string, []string)

func (*RouteTable) Route

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

Jump to

Keyboard shortcuts

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