mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
fix golint warnings
This commit is contained in:
parent
e0bde61c5c
commit
4472bc9e0e
@ -8,6 +8,7 @@ type IHandler interface {
|
||||
DomainLoop(domain *godns.Domain, panicChan chan<- godns.Domain)
|
||||
}
|
||||
|
||||
// CreateHandler creates dns handler by different providers
|
||||
func CreateHandler(provider string) IHandler {
|
||||
var handler IHandler
|
||||
|
||||
|
@ -25,6 +25,7 @@ type HEHandler struct {
|
||||
Configuration *godns.Settings
|
||||
}
|
||||
|
||||
// SetConfiguration pass dns settings and store it to handler instance
|
||||
func (handler *HEHandler) SetConfiguration(conf *godns.Settings) {
|
||||
handler.Configuration = conf
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user