Documentation ¶
Index ¶
- func EnsureLeadingPeriod(name string) string
- func EnsureTrailingPeriod(name string) string
- type DNSRequest
- type FakeDNSWriter
- func (fd *FakeDNSWriter) Close() error
- func (fd *FakeDNSWriter) Hijack()
- func (fd *FakeDNSWriter) LocalAddr() net.Addr
- func (fd *FakeDNSWriter) Msg() *dns.Msg
- func (fd *FakeDNSWriter) RemoteAddr() net.Addr
- func (fd *FakeDNSWriter) TsigStatus() error
- func (fd *FakeDNSWriter) TsigTimersOnly(v bool)
- func (fd *FakeDNSWriter) Write([]byte) (int, error)
- func (fd *FakeDNSWriter) WriteMsg(msg *dns.Msg) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureLeadingPeriod ¶
func EnsureTrailingPeriod ¶
Types ¶
type DNSRequest ¶ added in v0.4.9
func NewRequest ¶ added in v0.4.9
func NewRequest(msg *dns.Msg, ctx context.Context) *DNSRequest
func (*DNSRequest) Context ¶ added in v0.4.9
func (r *DNSRequest) Context() context.Context
type FakeDNSWriter ¶
type FakeDNSWriter struct {
// contains filtered or unexported fields
}
func NewFakeDNSWriter ¶
func NewFakeDNSWriter(w dns.ResponseWriter) *FakeDNSWriter
func (*FakeDNSWriter) Close ¶
func (fd *FakeDNSWriter) Close() error
func (*FakeDNSWriter) Hijack ¶
func (fd *FakeDNSWriter) Hijack()
func (*FakeDNSWriter) LocalAddr ¶
func (fd *FakeDNSWriter) LocalAddr() net.Addr
func (*FakeDNSWriter) Msg ¶
func (fd *FakeDNSWriter) Msg() *dns.Msg
func (*FakeDNSWriter) RemoteAddr ¶
func (fd *FakeDNSWriter) RemoteAddr() net.Addr
func (*FakeDNSWriter) TsigStatus ¶
func (fd *FakeDNSWriter) TsigStatus() error
func (*FakeDNSWriter) TsigTimersOnly ¶
func (fd *FakeDNSWriter) TsigTimersOnly(v bool)
Click to show internal directories.
Click to hide internal directories.