Documentation ¶
Index ¶
- type Context
- func (c *Context) Abort()
- func (c *Context) AbortWithErr(err error)
- func (c *Context) Error() error
- func (c *Context) Get(key string) (interface{}, bool)
- func (c *Context) GetQueryMessage() *dns.Msg
- func (c *Context) GetResponse() *dns.Msg
- func (c *Context) GetUUID() string
- func (c *Context) IsAbort() bool
- func (c *Context) Set(key string, value interface{})
- func (c *Context) SetResponse(msg *dns.Msg)
- type ContextHandler
- type DNSQuestion
- type DNSRR
- type DNSResponse
- type Endpoint
- type EndpointConfig
- type EndpointInitializer
- type EndpointSetupFunc
- type HandleFunc
- type Plugin
- type PluginConfig
- type PluginInitializer
- type PluginSetupFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) AbortWithErr ¶
func (*Context) GetQueryMessage ¶
func (*Context) GetResponse ¶
func (*Context) SetResponse ¶
type ContextHandler ¶
type ContextHandler func(*Context)
type DNSQuestion ¶
type DNSRR ¶
type DNSRR struct { DNSQuestion TTL uint32 `json:"TTL"` Data string `json:"data"` }
type DNSResponse ¶
type DNSResponse struct { Status uint32 `json:"Status"` Truncated bool `json:"TC"` RecursionDesired bool `json:"RD"` RecursionAvailable bool `json:"RA"` AuthenticatedData bool `json:"AD"` CheckingDisabled bool `json:"CD"` Question []DNSQuestion `json:"Question"` Answer []DNSRR `json:"Answer"` Authority []DNSRR `json:"Authority,omitempty"` Additional []DNSRR `json:"Additional,omitempty"` Comment string `json:"Comment,omitempty"` EdnsClientSubnet string `json:"edns_client_subnet,omitempty"` }
func ParseDNSResponseFromMessage ¶
func ParseDNSResponseFromMessage(msg *dns.Msg) DNSResponse
type EndpointConfig ¶
type EndpointConfig struct { Logger *logrus.Entry caddyfile.Dispenser Handler ContextHandler }
type EndpointInitializer ¶
type EndpointInitializer struct { Name string Description string SetupFunc EndpointSetupFunc }
type EndpointSetupFunc ¶
type EndpointSetupFunc func(EndpointConfig) (Endpoint, error)
type HandleFunc ¶
type HandleFunc func(*Context)
type PluginInitializer ¶
type PluginInitializer struct { Name string Description string SetupFunc PluginSetupFunc }
type PluginSetupFunc ¶
type PluginSetupFunc func(PluginConfig) (Plugin, error)
Click to show internal directories.
Click to hide internal directories.