Documentation
¶
Overview ¶
Package outbound implements multiple dns client and dispatcher for outbound connection.
Package outbound implements multiple dns client and dispatcher for outbound connection.
Package outbound implements multiple dns client and dispatcher for outbound connection.
Index ¶
- type CacheClient
- type LocalClient
- type RemoteClient
- type RemoteClientBundle
- func (cb *RemoteClientBundle) CacheResultIfNeeded()
- func (cb *RemoteClientBundle) Exchange(isCache bool, isLog bool) *dns.Msg
- func (cb *RemoteClientBundle) ExchangeFromCache() *dns.Msg
- func (cb *RemoteClientBundle) GetFirstQuestionDomain() string
- func (cb *RemoteClientBundle) GetResponseMessage() *dns.Msg
- func (cb *RemoteClientBundle) IsType(t uint16) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheClient ¶
type CacheClient struct {
// contains filtered or unexported fields
}
func NewCacheClient ¶
func (*CacheClient) Exchange ¶
func (c *CacheClient) Exchange() *dns.Msg
type LocalClient ¶
type LocalClient struct {
// contains filtered or unexported fields
}
func NewLocalClient ¶
func (*LocalClient) Exchange ¶
func (c *LocalClient) Exchange() *dns.Msg
type RemoteClient ¶
type RemoteClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(q *dns.Msg, u *common.DNSUpstream, resolver resolver.Resolver, ip string, cache *cache.Cache) *RemoteClient
func (*RemoteClient) ExchangeFromCache ¶
func (c *RemoteClient) ExchangeFromCache() *dns.Msg
type RemoteClientBundle ¶
type RemoteClientBundle struct { Name string // contains filtered or unexported fields }
func NewClientBundle ¶
func (*RemoteClientBundle) CacheResultIfNeeded ¶
func (cb *RemoteClientBundle) CacheResultIfNeeded()
func (*RemoteClientBundle) Exchange ¶
func (cb *RemoteClientBundle) Exchange(isCache bool, isLog bool) *dns.Msg
func (*RemoteClientBundle) ExchangeFromCache ¶
func (cb *RemoteClientBundle) ExchangeFromCache() *dns.Msg
func (*RemoteClientBundle) GetFirstQuestionDomain ¶
func (cb *RemoteClientBundle) GetFirstQuestionDomain() string
func (*RemoteClientBundle) GetResponseMessage ¶
func (cb *RemoteClientBundle) GetResponseMessage() *dns.Msg
func (*RemoteClientBundle) IsType ¶
func (cb *RemoteClientBundle) IsType(t uint16) bool
Click to show internal directories.
Click to hide internal directories.