Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corny/dnscheck
/ functions
Functions
79 in github.com/corny/dnscheck
⨍
Functions
79
◇
Types & classes
15
↓ 14 callers
Method
add
(str string)
check/stringSet.go:22
↓ 8 callers
Method
String
creates a comma separated sorted list
check/stringSet.go:9
↓ 7 callers
Method
Close
Close closes the database
geoip/geoip.go:75
↓ 6 callers
Function
incrementMetric
(ptr *uint64)
check/metrics.go:17
↓ 4 callers
Function
checkResult
Compare the result with the expectations
check/check.go:18
↓ 4 callers
Function
resolve
(server, query string)
check/lookup_test.go:14
↓ 3 callers
Method
Close
Close finishes the current Write life cycle.
export/writer.go:46
↓ 3 callers
Method
exchange
(m *dns.Msg, address string)
check/lookup.go:11
↓ 3 callers
Method
exportEntry
(channel string, ns *Nameserver)
export/run.go:91
↓ 3 callers
Function
simplifyError
(err error)
check/helper.go:8
↓ 2 callers
Method
ReadDomains
ReadDomains reads the domains to be checked from the given file
check/domains.go:10
↓ 2 callers
Method
open
open (re)opens the database
geoip/geoip.go:51
↓ 2 callers
Method
open
()
export/exporter.go:61
↓ 2 callers
Method
ptrName
(address string)
check/lookup.go:85
↓ 2 callers
Method
resolve
Query the given nameserver for a single domain
check/lookup.go:33
↓ 2 callers
Method
resolveDomains
Query the given nameserver for all domains
check/lookup.go:17
↓ 2 callers
Method
setup
(ext, prefix, infix, suffix string, conv nsSerializer)
export/exporter.go:34
↓ 2 callers
Method
tmpName
()
export/exporter.go:45
↓ 2 callers
Method
version
Query a nameserver for the bind version
check/lookup.go:111
↓ 1 callers
Method
AddDomain
AddDomain adds a domain if it does not exist yet
check/domains.go:32
↓ 1 callers
Method
City
City looks up ISO code and City by IP address
geoip/geoip.go:38
↓ 1 callers
Method
Count
Count returns the number of records written
export/writer.go:53
↓ 1 callers
Function
Each
Each iterates over all Nameserver records and calls the callback for each. If the callback returns an error, the iteration stops and that error is ret
export/nameserver.go:104
↓ 1 callers
Method
Enqueue
Enqueue adds a new job
check/work.go:9
↓ 1 callers
Method
GetString
GetString returns a string representation of the attribute given.
export/nameserver.go:36
↓ 1 callers
Method
IsValid
IsValid tells you whether this Nameserver is valid (i.e. not "new" or "failed").
export/nameserver.go:31
↓ 1 callers
Function
New
New opens a GeoIP database
geoip/geoip.go:23
↓ 1 callers
Function
NewWriter
NewWriter starts a new Writer life cycle. It returns a channel to which you send Nameserver instances. These are then transformed into different files
export/writer.go:27
↓ 1 callers
Method
Results
Results returns the results channel
check/work.go:14
↓ 1 callers
Method
Run
Run starts the export and wait until it is finished
export/run.go:27
↓ 1 callers
Method
Start
Start checks the options and starts the check routines
check/checker.go:36
↓ 1 callers
Method
Stop
Stop closes input channel and waits for workers to finish
check/checker.go:68
↓ 1 callers
Method
UpdateExectations
UpdateExectations checks the domain list against the references nameserver and saves the responses
check/checker.go:76
↓ 1 callers
Method
check
check checks the database for modifications and reload it if necessary
geoip/geoip.go:94
↓ 1 callers
Method
check
(job *Job)
check/check.go:7
↓ 1 callers
Method
close
()
export/exporter.go:15
↓ 1 callers
Function
createJobs
()
check.go:34
↓ 1 callers
Function
databasePath
(file string, environment string)
database.go:12
↓ 1 callers
Method
equals
(other stringSet)
check/stringSet.go:26
↓ 1 callers
Method
executeJob
consumes a job and writes the result in the given job
check/work.go:29
↓ 1 callers
Function
perSec
(n uint, t time.Duration)
export/run.go:105
↓ 1 callers
Method
prepareFile
()
export/exporter.go:53
↓ 1 callers
Function
resultWriter
()
check.go:63
↓ 1 callers
Method
run
()
export/writer.go:57
↓ 1 callers
Function
runCheck
()
check.go:9
↓ 1 callers
Function
runPurge
()
purge.go:9
↓ 1 callers
Function
scanRow
(row *sql.Rows)
export/nameserver.go:146
↓ 1 callers
Function
startMetrics
()
prometheus.go:19
↓ 1 callers
Method
targetName
()
export/exporter.go:49
↓ 1 callers
Method
watcher
watcher runs periodically check() until shutdown
geoip/geoip.go:81
↓ 1 callers
Method
worker
()
check/work.go:18
↓ 1 callers
Method
write
(*Nameserver)
export/exporter.go:14
Method
Collect
Collect collects metrics for Prometheus
prometheus.go:35
Method
Describe
Describe describes metrics for Prometheus
prometheus.go:28
Function
TestAuthenticated
(t *testing.T)
check/lookup_test.go:35
Function
TestCheckResult
(t *testing.T)
check/check_test.go:9
Function
TestCheckResultEmpty
(t *testing.T)
check/check_test.go:33
Function
TestCompare
(t *testing.T)
check/stringSet_test.go:9
Function
TestExistent
(t *testing.T)
check/lookup_test.go:18
Function
TestNotExistent
(t *testing.T)
check/lookup_test.go:26
Function
TestPtrName
(t *testing.T)
check/lookup_test.go:51
Function
TestReadDomains
(t *testing.T)
check/check_test.go:51
Function
TestSimplifyNetworkUnreachable
(t *testing.T)
check/helper_test.go:17
Function
TestSimplifyTimeout
(t *testing.T)
check/helper_test.go:10
Function
TestString
(t *testing.T)
check/stringSet_test.go:29
Function
TestUnreachable
(t *testing.T)
check/lookup_test.go:44
Function
TestVersion
(t *testing.T)
check/lookup_test.go:58
Method
close
()
export/exporter.go:103
Method
convertNS
(ns *Nameserver)
export/exporter_text.go:20
Method
convertNS
(ns *Nameserver)
export/exporter_json.go:24
Method
convertNS
(*Nameserver)
export/exporter.go:10
Method
convertNS
(_ *Nameserver)
export/exporter_csv.go:44
Function
init
()
main.go:38
Function
main
()
main.go:46
Function
newCSVExporter
(tpl string)
export/exporter_csv.go:17
Function
newJSONExporter
(tpl string)
export/exporter_json.go:16
Function
newTextExporter
(tpl string)
export/exporter_text.go:12
Method
write
(ns *Nameserver)
export/exporter.go:72
Method
write
with code from encoding/csv (https://golang.org/src/encoding/csv/writer.go#L40) but without options (Comma, UseCLRF)
export/exporter_csv.go:34