Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName string = "big-gorilla"
PluginName is the name of this plugin
View Source
const TopicName string = "AddRequest"
TopicName defines which NSQ topic requests will be published to
Variables ¶
View Source
var PluginLogger = clog.NewWithPlugin(PluginName)
PluginLogger is used to log messages from the plugin to CoreDNS
View Source
var PluginProducer *nsq.Producer = nil
PluginProducer is the NSQ producer
Functions ¶
Types ¶
type PluginHandler ¶
PluginHandler will handle incoming DNS requests
func (PluginHandler) Name ¶
func (handler PluginHandler) Name() string
Name will return the plugin's name
type Request ¶
type Request struct { Hash string `json:"hash"` Time int64 `json:"time"` Address string `json:"address"` Name string `json:"name"` Type uint16 `json:"type"` Class uint16 `json:"class"` }
Request defines a DNS request object
func CreateRequest ¶
func CreateRequest(responseWriter dns.ResponseWriter, question dns.Question) Request
CreateRequest will create a new request object
Click to show internal directories.
Click to hide internal directories.