Versions in this module Expand all Collapse all v0 v0.7.1 Aug 16, 2018 Changes in this version + const RouterTLS + type Options struct + EnableSSL bool + Endpoints []string + TLSConfig *tls.Config + Version string + func (o Options) ToPilotOptions() *client.PilotOptions type Router + InitRouteRuleByKey func(string) v0.5.1 May 31, 2018 Changes in this version + var ErrNoExist = errors.New("router not exists") + var Templates = make(map[string]*model.Match) + func BuildRouter(name string) error + func FitRate(tags []*model.RouteTag, dest string) *model.RouteTag + func Init() error + func InstallRouterService(name string, f func() (Router, error)) + func Match(match model.Match, headers map[string]string, source *registry.SourceInfo) bool + func QuickSort(left int, right int, rules []*model.RouteRule) (s []*model.RouteRule) + func Route(header map[string]string, si *registry.SourceInfo, inv *invocation.Invocation) error + func SortRules(name string) []*model.RouteRule + func SourceMatch(match *model.Match, headers map[string]string, source *registry.SourceInfo) bool + func ValidateRule(rules map[string][]*model.RouteRule) bool + type Router interface + FetchRouteRule func() map[string][]*model.RouteRule + FetchRouteRuleByServiceName func(string) []*model.RouteRule + Init func() error + SetRouteRule func(map[string][]*model.RouteRule) + var DefaultRouter Router