Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
Next middleware.Handler
Zones []string
// contains filtered or unexported fields
}
Cache is middleware that looks up responses in a cache and caches replies.
type ResponseWriter ¶
type ResponseWriter struct {
dns.ResponseWriter
// contains filtered or unexported fields
}
ResponseWriter is a response writer that caches the reply message.
func NewCachingResponseWriter ¶
func NewCachingResponseWriter(w dns.ResponseWriter, cache *gcache.Cache, cap time.Duration) *ResponseWriter
NewCachingResponseWriter returns a new ResponseWriter.
func (*ResponseWriter) Hijack ¶
func (c *ResponseWriter) Hijack()
Hijack implements the dns.ResponseWriter interface.
Click to show internal directories.
Click to hide internal directories.