Documentation
¶
Index ¶
- func FitRate(tags []*config.RouteTag, dest string) (tag *config.RouteTag, err error)
- func GetRouteRule() map[string][]*config.RouteRule
- func GetTemplates() map[string]*config.Match
- func Init(nr map[string][]*config.RouteRule, t map[string]*config.Match)
- func Match(match config.Match, headers map[string]string, source *registry.SourceInfo) bool
- func QuickSort(left int, right int, rules []*config.RouteRule) (s []*config.RouteRule)
- func Route(header map[string]string, si *registry.SourceInfo, inv *invocation.Invocation) error
- func SetRouteRule(nr map[string][]*config.RouteRule)
- func SetTemplates(t map[string]*config.Match)
- func SortRules(name string) []*config.RouteRule
- func SourceMatch(match *config.Match, headers map[string]string, source *registry.SourceInfo) bool
- type SafeMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Route ¶
func Route(header map[string]string, si *registry.SourceInfo, inv *invocation.Invocation) error
Route route the APIs
func SetRouteRule ¶
SetRouteRule set route rule
func SourceMatch ¶
SourceMatch check the source route