Documentation ¶
Index ¶
- func EnsureLeadingPeriod(name string) string
- func EnsureTrailingPeriod(name string) string
- 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 ¶
Types ¶
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)
func (*FakeDNSWriter) Write ¶
func (fd *FakeDNSWriter) Write([]byte) (int, error)
func (*FakeDNSWriter) WriteMsg ¶
func (fd *FakeDNSWriter) WriteMsg(msg *dns.Msg) error
Click to show internal directories.
Click to hide internal directories.