Documentation ¶
Index ¶
- Constants
- type AddressItem
- type Godns
- func (self *Godns) AddDomainServer(domain string, servers []string)
- func (self *Godns) AddHost(addressDomain string, addressIps []string, addressType string)
- func (self *Godns) DumpConfig() string
- func (self *Godns) Run()
- func (self *Godns) SaveAddresses()
- func (self *Godns) SaveDomainServers()
- func (self *Godns) SaveHosts()
- func (self *Godns) Stop()
- func (self *Godns) UpdateStaticHosts()
- func (self *Godns) UpdateWebrouterVips(webrouterVips []string)
- func (self *Godns) WatchDomainServer(watchCh <-chan struct{})
- func (self *Godns) WatchGodnsDomains(watchCh <-chan struct{})
- type JSONAddressConfig
- type JSONServerConfig
- type ServerItem
Constants ¶
View Source
const EtcdDomainPrefixKey = "domain"
View Source
const EtcdGodnsHostsPrefixKey = "domains"
View Source
const EtcdGodnsServerPrefixKey = "domain_servers"
View Source
const EtcdPrefixKey = "/lain/config"
View Source
const StaticHostsFile = "/etc/hosts"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressItem ¶
type AddressItem struct {
// contains filtered or unexported fields
}
type Godns ¶
type Godns struct {
// contains filtered or unexported fields
}
func (*Godns) AddDomainServer ¶
domainServers: [1.1.1.1#53, 2.2.2.2#53]
func (*Godns) DumpConfig ¶
func (*Godns) SaveAddresses ¶
func (self *Godns) SaveAddresses()
func (*Godns) SaveDomainServers ¶
func (self *Godns) SaveDomainServers()
func (*Godns) UpdateStaticHosts ¶
func (self *Godns) UpdateStaticHosts()
func (*Godns) UpdateWebrouterVips ¶
func (*Godns) WatchDomainServer ¶
func (self *Godns) WatchDomainServer(watchCh <-chan struct{})
func (*Godns) WatchGodnsDomains ¶
func (self *Godns) WatchGodnsDomains(watchCh <-chan struct{})
type JSONAddressConfig ¶
type JSONServerConfig ¶
type JSONServerConfig struct {
Servers []string `json:"servers"` // ip#port
}
type ServerItem ¶
type ServerItem struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.