package
0.0.0-20200202104706-11c950b530fb
Repository: https://github.com/gpdm/doh.git
Documentation: pkg.go.dev
# Functions
DNSQueryGet is the HTTP GET request handler, which performs minimum upfront validation, before passing the request over to the shared backend routine.
DNSQueryPost is the HTTP POST request handler, which performs minimum upfront validation, before passing the request over to the shared backend routine.
NewRouter initializes an HTTP multiplexer for the webservice.
TelemetryCollector receives information from other go routines and forwards them to InfluxDB.
# Constants
LogAlert is a Syslog-type priority for Alert messages.
LogCrit is a Syslog-type priority for Critical messages.
LogDebug is a Syslog-type priority for Debug messages.
LogEmerg is a Syslog-type priority for Emergency messages.
LogErr is a Syslog-type priority for Error messages.
LogInform is a Syslog-type priority for Informational messages.
LogNotice is a Syslog-type priority for Notice messages.
LogWarn is a Syslog-type priority for Warning messages.
TelemetryDNSRequestTypeA is an arbitary type to track DNS A requests.
TelemetryDNSRequestTypeAAAA is an arbitary type to track DNS AAAA requests.
TelemetryDNSRequestTypeALL is an arbitary type to track DNS ALL requests.
TelemetryDNSRequestTypeCNAME is an arbitary type to track DNS CNAME requests.
TelemetryDNSRequestTypeHINFO is an arbitary type to track DNS HINFO requests.
TelemetryDNSRequestTypeMINFO is an arbitary type to track DNS MINFO requests.
TelemetryDNSRequestTypeMX is an arbitary type to track DNS MX requests.
TelemetryDNSRequestTypeNS is an arbitary type to track DNS NS requests.
TelemetryDNSRequestTypePTR is an arbitary type to track DNS PTR requests.
TelemetryDNSRequestTypeSOA is an arbitary type to track DNS SOA requests.
TelemetryDNSRequestTypeSRV is an arbitary type to track DNS SRV requests.
TelemetryDNSRequestTypeTXT is an arbitary type to track DNS TXT requests.
TelemetryDNSRequestTypeWKS is an arbitary type to track DNS WKS requests.
TelemetryHTTPRequestTypeGet is an arbitary type to track HTTP GET requests.
TelemetryHTTPRequestTypePost is an arbitary type to track HTTP POST requests.
TelemetryKeepAlive is a generic type to track internal keep-alive.
TelemetryRedisCacheHit is an arbitary type to track Redis cache hits.
TelemetryRedisCacheMiss is an arbitary type to track Redis cache misses.
# Variables
ActiveDNSResolvers is our list of known active resolvers.
GlobalDNSResolvers is our list of globally known resolvers.
LogLevels is a map of logrus <-> syslog log levels.
TelemetryValues serves as a lookup table to map given keywords to a binary type.
# Structs
DNSResolver dummy.