vip_rule_conf

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VipTableConfCheck

func VipTableConfCheck(conf *VipTableConf) error

Types

type Product2Vip

type Product2Vip map[string]VipList // product => vip list

type Vip2Product

type Vip2Product map[string]string // vip => product

type VipConf

type VipConf struct {
	Version string      // version of the config
	VipMap  Vip2Product // vip => product
}

func VipRuleConfLoad

func VipRuleConfLoad(filename string) (VipConf, error)

VipRuleConfLoad loads config of vip table from file.

type VipList

type VipList []string // list of vips

type VipTableConf

type VipTableConf struct {
	Version string      // version of the config
	Vips    Product2Vip // product => vip list
}

func (*VipTableConf) LoadAndCheck

func (conf *VipTableConf) LoadAndCheck(filename string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL