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 ¶
- type SelfHosted
- func (s *SelfHosted) CleanUp(ctx context.Context, record *shproto.Record) (*shproto.Empty, error)
- func (s *SelfHosted) Name() string
- func (s *SelfHosted) Present(ctx context.Context, record *shproto.Record) (*shproto.Empty, error)
- func (s *SelfHosted) Quit(ctx context.Context, _ *shproto.Empty) (*shproto.Empty, error)
- func (s *SelfHosted) Ready() bool
- func (s *SelfHosted) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SelfHosted ¶
type SelfHosted struct { Next plugin.Handler shproto.UnimplementedDNSServer shproto.UnimplementedRestartServer // contains filtered or unexported fields }
Example is an example plugin to show how to write a plugin.
func (*SelfHosted) Ready ¶
func (s *SelfHosted) 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.
Click to show internal directories.
Click to hide internal directories.