Documentation ¶
Index ¶
- type BufferResponseWriter
- func (b *BufferResponseWriter) Close() error
- func (b *BufferResponseWriter) Hijack()
- func (b *BufferResponseWriter) LocalAddr() net.Addr
- func (b *BufferResponseWriter) RemoteAddr() net.Addr
- func (b *BufferResponseWriter) TsigStatus() error
- func (b *BufferResponseWriter) TsigTimersOnly(bool)
- func (b *BufferResponseWriter) Write(m []byte) (int, error)
- func (b *BufferResponseWriter) WriteMsg(m *dns.Msg) error
- type Config
- type LocalAddr
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferResponseWriter ¶
type BufferResponseWriter struct { LocalAddress net.Addr RemoteAddress net.Addr Logger hclog.Logger // contains filtered or unexported fields }
BufferResponseWriter writes a DNS response to a byte buffer.
func (*BufferResponseWriter) Close ¶
func (b *BufferResponseWriter) Close() error
Close closes the connection.
func (*BufferResponseWriter) Hijack ¶
func (b *BufferResponseWriter) Hijack()
Hijack lets the caller take over the connection. After a call to Hijack(), the DNS package will not do anything with the connection. {
func (*BufferResponseWriter) LocalAddr ¶
func (b *BufferResponseWriter) LocalAddr() net.Addr
LocalAddr returns the net.Addr of the server
func (*BufferResponseWriter) RemoteAddr ¶
func (b *BufferResponseWriter) RemoteAddr() net.Addr
RemoteAddr returns the net.Addr of the client that sent the current request.
func (*BufferResponseWriter) TsigStatus ¶
func (b *BufferResponseWriter) TsigStatus() error
TsigStatus returns the status of the Tsig.
func (*BufferResponseWriter) TsigTimersOnly ¶
func (b *BufferResponseWriter) TsigTimersOnly(bool)
TsigTimersOnly sets the tsig timers only boolean.
type Server ¶
type Server struct {
Config
}
func (*Server) Query ¶
func (s *Server) Query(ctx context.Context, req *pbdns.QueryRequest) (*pbdns.QueryResponse, error)
Query is a gRPC endpoint that will serve dns requests. It will be consumed primarily by the consul dataplane to proxy dns requests to consul.
Click to show internal directories.
Click to hide internal directories.