Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

    Writer type

    func NewWriter

    func NewWriter(proto, addr string) *Writer

      NewWriter return writer

      func (*Writer) Close

      func (w *Writer) Close() error

        Close func

        func (*Writer) Hijack

        func (w *Writer) Hijack()

          Hijack func

          func (*Writer) Internal

          func (w *Writer) Internal() bool

            Internal func

            func (*Writer) LocalAddr

            func (w *Writer) LocalAddr() net.Addr

              LocalAddr func

              func (*Writer) Msg

              func (w *Writer) Msg() *dns.Msg

                Msg return current dns message

                func (*Writer) Proto

                func (w *Writer) Proto() string

                  Proto func

                  func (*Writer) Rcode

                  func (w *Writer) Rcode() int

                    Rcode return message response code

                    func (*Writer) RemoteAddr

                    func (w *Writer) RemoteAddr() net.Addr

                      RemoteAddr func

                      func (*Writer) RemoteIP

                      func (w *Writer) RemoteIP() net.IP

                        RemoteIP func

                        func (*Writer) Reset

                        func (w *Writer) Reset(rw dns.ResponseWriter)

                          Reset func

                          func (*Writer) TsigStatus

                          func (w *Writer) TsigStatus() error

                            TsigStatus func

                            func (*Writer) TsigTimersOnly

                            func (w *Writer) TsigTimersOnly(ok bool)

                              TsigTimersOnly func

                              func (*Writer) Write

                              func (w *Writer) Write(b []byte) (int, error)

                                Write func

                                func (*Writer) WriteMsg

                                func (w *Writer) WriteMsg(msg *dns.Msg) error

                                  WriteMsg func

                                  func (*Writer) Written

                                  func (w *Writer) Written() bool

                                    Written func

                                    Source Files