Documentation ¶
Index ¶
- Constants
- Variables
- func RecordHandleAnswer(m *dns.Msg, q dns.Question, record Record, answersCount int) (bool, bool)
- func RecordMapLoadJSON(jsonPath string) (map[string][]Record, error)
- func ServerLoadRecords(jsonPath string)
- func ServerStart(addr string)
- func UtilPingHost(host string, maxSeconds int) bool
- func UtilRenderTpl(tpl string, data map[string]interface{}) string
- type Record
Constants ¶
View Source
const ( StrategyCheck = "check" StrategyCheckAndStop = "check_and_stop" StrategySkipOrCheck = "skip_or_check" )
Strategy
Variables ¶
View Source
var ( RecordsMap map[string][]Record Upstreams []string IsVerbose bool )
Main props
Functions ¶
func RecordHandleAnswer ¶
RecordHandleAnswer ..
func RecordMapLoadJSON ¶
RecordMapLoadJSON ..
func UtilRenderTpl ¶
UtilRenderTpl ..
Types ¶
Click to show internal directories.
Click to hide internal directories.