Versions in this module Expand all Collapse all v1 v1.0.3 Jul 17, 2021 v1.0.1 Jul 17, 2021 Changes in this version + type Config struct + NamespaceID string + type Dest struct + DestId string + DestItemList []DestItem + DestWeight int64 + RouteRuleId string + type DestItem struct + DestItemField string + DestItemValue string + RouteDestId string + RouteDestItemId string + type Router struct + func DefaultRouter() *Router + func New(conf *Config, cfg config.Source) *Router + func (r *Router) Close() + func (r *Router) Select(ctx context.Context, svc naming.Service, nodes []naming.Instance) (selects []naming.Instance) + type Rule struct + DestList []Dest + RouteId string + RouteRuleId string + TagList []TagRule + type RuleGroup struct + FallbackStatus bool + MicroserivceId string + MicroserviceName string + NamespaceId string + RouteDesc string + RouteId string + RouteName string + RuleList []Rule + type TagRule struct + RouteRuleId string + TagField string + TagID string + TagOperator string + TagType string + TagValue string