Documentation
¶
Index ¶
- Constants
- type AddressItem
- type JSONAddressConfig
- type JSONServerConfig
- type Server
- func (self *Server) AddAddress(addressDomain string, addressIps []string, addressType string)
- func (self *Server) AddServer(domain string, servers []string)
- func (self *Server) FetchVip() string
- func (self *Server) ReloadDnsmasq()
- func (self *Server) RestartDnsmasq()
- func (self *Server) RunDnsmasqd()
- func (self *Server) SaveAddresses()
- func (self *Server) SaveExtras()
- func (self *Server) SaveServers()
- func (self *Server) StopDnsmasqd()
- func (self *Server) WatchDnsmasqAddress(watchCh <-chan struct{})
- func (self *Server) WatchDnsmasqExtra(watchCh <-chan struct{})
- func (self *Server) WatchDnsmasqServer(watchCh <-chan struct{})
- func (self *Server) WatchVip(watchCh <-chan struct{})
- type ServerItem
Constants ¶
View Source
const DnsmaqdPidfile = "/var/run/dnsmasq.pid"
View Source
const EtcdAddressPrefixKey = "dnsmasq_addresses"
View Source
const EtcdDnsExtraPrefixKey = "extra_domains"
View Source
const EtcdPrefixKey = "/lain/config"
View Source
const EtcdServerPrefixKey = "dnsmasq_servers"
View Source
const EtcdVipPrefixKey = "vip"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressItem ¶
type AddressItem struct {
// contains filtered or unexported fields
}
type JSONAddressConfig ¶
type JSONServerConfig ¶
type JSONServerConfig struct {
Servers []string `json:"servers"` // ip#port
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddAddress ¶
func (*Server) RestartDnsmasq ¶
func (self *Server) RestartDnsmasq()
func (*Server) RunDnsmasqd ¶
func (self *Server) RunDnsmasqd()
func (*Server) SaveAddresses ¶
func (self *Server) SaveAddresses()
func (*Server) SaveExtras ¶
func (self *Server) SaveExtras()
func (*Server) SaveServers ¶
func (self *Server) SaveServers()
func (*Server) StopDnsmasqd ¶
func (self *Server) StopDnsmasqd()
func (*Server) WatchDnsmasqAddress ¶
func (self *Server) WatchDnsmasqAddress(watchCh <-chan struct{})
func (*Server) WatchDnsmasqExtra ¶
func (self *Server) WatchDnsmasqExtra(watchCh <-chan struct{})
func (*Server) WatchDnsmasqServer ¶
func (self *Server) WatchDnsmasqServer(watchCh <-chan struct{})
type ServerItem ¶
type ServerItem struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.