Documentation
¶
Overview ¶
Package example is a CoreDNS plugin that prints "example" to stdout on every packet received.
It serves as an example CoreDNS plugin with numerous code comments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgeCDNXPrefixList ¶
type EdgeCDNXPrefixList struct {
Next plugin.Handler
Routing *EdgeCDNXPrefixListRouting
Sync *sync.RWMutex
InformerSynced func() bool
}
Example is an example plugin to show how to write a plugin.
func (EdgeCDNXPrefixList) Name ¶
func (e EdgeCDNXPrefixList) Name() string
Name implements the Handler interface.
func (EdgeCDNXPrefixList) Ready ¶
func (e EdgeCDNXPrefixList) Ready() bool
Ready implements the ready.Readiness interface, once this flips to true CoreDNS assumes this plugin is ready for queries; it is not checked again.
type EdgeCDNXPrefixListResponseWriter ¶
type EdgeCDNXPrefixListResponseWriter struct {
}
type PrefixTreeEntry ¶
type ResponsePrinter ¶
type ResponsePrinter struct {
dns.ResponseWriter
}
ResponsePrinter wrap a dns.ResponseWriter and will write example to standard output when WriteMsg is called.
func NewResponsePrinter ¶
func NewResponsePrinter(w dns.ResponseWriter) *ResponsePrinter
NewResponsePrinter returns ResponseWriter.
Click to show internal directories.
Click to hide internal directories.