Documentation
¶
Index ¶
- type CacheItem
- type Config
- type Manager
- type ProxyService
- type Resource
- type Resources
- type StealthDNSCache
- func (pc *StealthDNSCache) CleanupExpired()
- func (pc *StealthDNSCache) Delete(key string)
- func (pc *StealthDNSCache) GetCache(key string) (*CacheItem, bool)
- func (pc *StealthDNSCache) SetCache(key string, value *dns.Msg)
- func (pc *StealthDNSCache) SetCacheWithTTL(key string, value *dns.Msg, ttl time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewDNSManager ¶
func NewDNSManager() *Manager
func (*Manager) GetUpstreamDNS ¶
func (*Manager) RemoveStealthDNS ¶
func (d *Manager) RemoveStealthDNS()
func (*Manager) SetStealthDNS ¶
type ProxyService ¶
type ProxyService struct {
// contains filtered or unexported fields
}
ProxyService dns proxy service
func (*ProxyService) ServeDNS ¶
func (p *ProxyService) ServeDNS(w dns.ResponseWriter, r *dns.Msg)
func (*ProxyService) Stop ¶
func (p *ProxyService) Stop()
func (*ProxyService) StopConfigWatch ¶
func (p *ProxyService) StopConfigWatch()
type StealthDNSCache ¶
type StealthDNSCache struct {
// contains filtered or unexported fields
}
func NewStealthDNSCache ¶
func NewStealthDNSCache(ttl time.Duration) *StealthDNSCache
func (*StealthDNSCache) CleanupExpired ¶
func (pc *StealthDNSCache) CleanupExpired()
func (*StealthDNSCache) Delete ¶
func (pc *StealthDNSCache) Delete(key string)
func (*StealthDNSCache) GetCache ¶
func (pc *StealthDNSCache) GetCache(key string) (*CacheItem, bool)
func (*StealthDNSCache) SetCacheWithTTL ¶
Click to show internal directories.
Click to hide internal directories.