Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewCommonContainer ¶
func NewCommonContainer() *Container
type PluginContainer ¶
type PluginContainer interface { Register(plugin.Handler) error // Execute run plugin.Handler.ServeDNS in order as it was added. // If error occurs, it exits immediately end return error. // If !dns.RcodeSuccess is returned, it exits immediately end return error. Execute(ctx context.Context, w dns.ResponseWriter, msg *dns.Msg) error }
PluginContainer is keeps particular services in the container and executes them in order they were added
Click to show internal directories.
Click to hide internal directories.