Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductRouteRule ¶
type ProductRouteRule map[string]RouteRules
ProductRouteRule holds mapping from product to rules.
type ProductRouteRuleFile ¶
type ProductRouteRuleFile map[string]RouteRuleFiles
type RouteRuleFile ¶
type RouteRuleFiles ¶
type RouteRuleFiles []RouteRuleFile
type RouteTableConf ¶
type RouteTableConf struct { Version string // version of the config RuleMap ProductRouteRule }
func RouteConfLoad ¶
func RouteConfLoad(filename string) (*RouteTableConf, error)
RouteConfLoad loads config of route table from file.
func (*RouteTableConf) LoadAndCheck ¶
func (conf *RouteTableConf) LoadAndCheck(filename string) (string, error)
type RouteTableFile ¶
type RouteTableFile struct { Version *string // version of the config ProductRule *ProductRouteRuleFile // product => rules }
Click to show internal directories.
Click to hide internal directories.