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 EdgeCDNXService ¶
type EdgeCDNXService struct {
Next plugin.Handler
Services *[]infrastructurev1alpha1.Service
Sync *sync.RWMutex
InformersSynced []func() bool
Zones *[]string
Records *map[string][]dns.RR
}
Example is an example plugin to show how to write a plugin.
func (EdgeCDNXService) Name ¶
func (e EdgeCDNXService) Name() string
Name implements the Handler interface.
func (EdgeCDNXService) Ready ¶
func (e EdgeCDNXService) 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 EdgeCDNXServiceResponseWriter ¶
type EdgeCDNXServiceResponseWriter struct {
}
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.