Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGP ¶
type BGP struct {
ListenPort int32 `yaml:"listen_port"`
ListenAddrs []string `yaml:"listen_addrs"`
RouterID string `yaml:"router_id"`
RouterASN uint32 `yaml:"router_asn"`
PeerASN uint32 `yaml:"peer_asn"`
PeerAuthPassword string `yaml:"peer_auth_password"`
PeerNets []string `yaml:"peer_nets"`
NextHopIPv4 string `yaml:"next_hop_v4"`
NextHopIPv6 string `yaml:"next_hop_v6"`
}
type Checker ¶
type Checker struct {
DirectDev string `yaml:"direct_dev"`
VPNDev string `yaml:"vpn_dev"`
Concurrency int `yaml:"concurrency"`
QueueSize int `yaml:"queue_size"`
IPHistorySize int64 `yaml:"ip_history_size"`
IPHistoryTTL time.Duration `yaml:"ip_history_ttl"`
DecisionsSize int64 `yaml:"decisions_size"`
DecisionsTTL time.Duration `yaml:"decisions_ttl"`
VPNSitesSize int64 `yaml:"vpn_sites_size"`
VPNSitesTTL time.Duration `yaml:"vpn_sites_ttl"`
RecheckPeriod time.Duration `yaml:"recheck_period"`
DirectDomains []string `yaml:"direct_domains"`
VPNDomains []string `yaml:"vpn_domains"`
}
type Config ¶
type Config struct {
Debug bool `yaml:"debug"`
DNS DNS `yaml:"dns"`
BGP BGP `yaml:"bgp"`
Checker Checker `yaml:"checker"`
}
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.