package
Version:
v0.1.10
Opens a new window with list of versions in this module.
Published: Dec 30, 2020
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
NamespaceID string
}
type Dest struct {
DestId string `yaml:"destId"`
DestWeight int64 `yaml:"destWeight"`
DestItemList []DestItem `yaml:"destItemList"`
RouteRuleId string `yaml:"routeRuleId"`
}
type DestItem struct {
RouteDestItemId string `yaml:"routeDestItemId"`
RouteDestId string `yaml:"routeDestId"`
DestItemField string `yaml:"destItemField"`
DestItemValue string `yaml:"destItemValue"`
}
type Rule struct {
RouteRuleId string `yaml:"routeRuleId"`
RouteId string `yaml:"routeId"`
TagList []TagRule `yaml:"tagList"`
DestList []Dest `yaml:"destList"`
}
type RuleGroup struct {
RouteId string `yaml:"routeId"`
RouteName string `yaml:"routeName"`
RouteDesc string `yaml:"routeDesc"`
MicroserivceId string `yaml:"microserivceId"`
RuleList []Rule `yaml:"ruleList"`
NamespaceId string `yaml:"namespaceId"`
MicroserviceName string `yaml:"microserviceName"`
FallbackStatus bool `yaml:"fallbackStatus"`
}
type TagRule struct {
TagID string `yaml:"tagID"`
TagType string `yaml:"tagType"`
TagField string `yaml:"tagField"`
TagOperator string `yaml:"tagOperator"`
TagValue string `yaml:"tagValue"`
RouteRuleId string `yaml:"routeRuleId"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.