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 CachingResponseWriter ¶
type CachingResponseWriter struct { dns.ResponseWriter // contains filtered or unexported fields }
func NewCachingResponseWriter ¶
func NewCachingResponseWriter(w dns.ResponseWriter, cache *gcache.Cache, cap time.Duration) *CachingResponseWriter
func (*CachingResponseWriter) Hijack ¶
func (c *CachingResponseWriter) Hijack()
Click to show internal directories.
Click to hide internal directories.