Documentation ¶
Index ¶
- Constants
- type RoutingMgr
- func (c *RoutingMgr) AddIPStr(domain string, input string) (err error)
- func (c *RoutingMgr) AddIp(domain string, ip net.IP) error
- func (c *RoutingMgr) FlushRoutingTable() (err error)
- func (c *RoutingMgr) LoadPacList(domains map[string]bool, ips map[string]bool)
- func (c *RoutingMgr) PopulateRoutingTable() (err error)
- func (c *RoutingMgr) ReloadPacList(domains map[string]bool, ips map[string]bool, ipDeleteList []string)
- func (c *RoutingMgr) Stop()
- type RoutingMgrCache
Constants ¶
View Source
const ( TABLE_MANGLE = "mangle" CHAIN_TPROXY = "RED_FROG_TPROXY" CHAIN_DIVERT = "RED_FROG_DIVERT" CHAIN_RED_FROG = "RED_FROG" CHAIN_PREROUTING = "PREROUTING" IPSET_RED_FROG_V4 = "RED_FROG_IPSET_V4" IPSET_RED_FROG_V6 = "RED_FROG_IPSET_V6" ROUTING_PRIORITY = 1 )
View Source
const (
CACHE_PATH = "routing_mgr_cache.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoutingMgr ¶
func StartRoutingMgr ¶
func (*RoutingMgr) AddIPStr ¶
func (c *RoutingMgr) AddIPStr(domain string, input string) (err error)
func (*RoutingMgr) FlushRoutingTable ¶
func (c *RoutingMgr) FlushRoutingTable() (err error)
func (*RoutingMgr) LoadPacList ¶
func (c *RoutingMgr) LoadPacList(domains map[string]bool, ips map[string]bool)
func (*RoutingMgr) PopulateRoutingTable ¶
func (c *RoutingMgr) PopulateRoutingTable() (err error)
func (*RoutingMgr) ReloadPacList ¶
func (*RoutingMgr) Stop ¶
func (c *RoutingMgr) Stop()
Click to show internal directories.
Click to hide internal directories.