MCPcopy Create free account

hub / github.com/corny/dnscheck / functions

Functions79 in github.com/corny/dnscheck

↓ 14 callersMethodadd
(str string)
check/stringSet.go:22
↓ 8 callersMethodString
creates a comma separated sorted list
check/stringSet.go:9
↓ 7 callersMethodClose
Close closes the database
geoip/geoip.go:75
↓ 6 callersFunctionincrementMetric
(ptr *uint64)
check/metrics.go:17
↓ 4 callersFunctioncheckResult
Compare the result with the expectations
check/check.go:18
↓ 4 callersFunctionresolve
(server, query string)
check/lookup_test.go:14
↓ 3 callersMethodClose
Close finishes the current Write life cycle.
export/writer.go:46
↓ 3 callersMethodexchange
(m *dns.Msg, address string)
check/lookup.go:11
↓ 3 callersMethodexportEntry
(channel string, ns *Nameserver)
export/run.go:91
↓ 3 callersFunctionsimplifyError
(err error)
check/helper.go:8
↓ 2 callersMethodReadDomains
ReadDomains reads the domains to be checked from the given file
check/domains.go:10
↓ 2 callersMethodopen
open (re)opens the database
geoip/geoip.go:51
↓ 2 callersMethodopen
()
export/exporter.go:61
↓ 2 callersMethodptrName
(address string)
check/lookup.go:85
↓ 2 callersMethodresolve
Query the given nameserver for a single domain
check/lookup.go:33
↓ 2 callersMethodresolveDomains
Query the given nameserver for all domains
check/lookup.go:17
↓ 2 callersMethodsetup
(ext, prefix, infix, suffix string, conv nsSerializer)
export/exporter.go:34
↓ 2 callersMethodtmpName
()
export/exporter.go:45
↓ 2 callersMethodversion
Query a nameserver for the bind version
check/lookup.go:111
↓ 1 callersMethodAddDomain
AddDomain adds a domain if it does not exist yet
check/domains.go:32
↓ 1 callersMethodCity
City looks up ISO code and City by IP address
geoip/geoip.go:38
↓ 1 callersMethodCount
Count returns the number of records written
export/writer.go:53
↓ 1 callersFunctionEach
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 callersMethodEnqueue
Enqueue adds a new job
check/work.go:9
↓ 1 callersMethodGetString
GetString returns a string representation of the attribute given.
export/nameserver.go:36
↓ 1 callersMethodIsValid
IsValid tells you whether this Nameserver is valid (i.e. not "new" or "failed").
export/nameserver.go:31
↓ 1 callersFunctionNew
New opens a GeoIP database
geoip/geoip.go:23
↓ 1 callersFunctionNewWriter
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 callersMethodResults
Results returns the results channel
check/work.go:14
↓ 1 callersMethodRun
Run starts the export and wait until it is finished
export/run.go:27
↓ 1 callersMethodStart
Start checks the options and starts the check routines
check/checker.go:36
↓ 1 callersMethodStop
Stop closes input channel and waits for workers to finish
check/checker.go:68
↓ 1 callersMethodUpdateExectations
UpdateExectations checks the domain list against the references nameserver and saves the responses
check/checker.go:76
↓ 1 callersMethodcheck
check checks the database for modifications and reload it if necessary
geoip/geoip.go:94
↓ 1 callersMethodcheck
(job *Job)
check/check.go:7
↓ 1 callersMethodclose
()
export/exporter.go:15
↓ 1 callersFunctioncreateJobs
()
check.go:34
↓ 1 callersFunctiondatabasePath
(file string, environment string)
database.go:12
↓ 1 callersMethodequals
(other stringSet)
check/stringSet.go:26
↓ 1 callersMethodexecuteJob
consumes a job and writes the result in the given job
check/work.go:29
↓ 1 callersFunctionperSec
(n uint, t time.Duration)
export/run.go:105
↓ 1 callersMethodprepareFile
()
export/exporter.go:53
↓ 1 callersFunctionresultWriter
()
check.go:63
↓ 1 callersMethodrun
()
export/writer.go:57
↓ 1 callersFunctionrunCheck
()
check.go:9
↓ 1 callersFunctionrunPurge
()
purge.go:9
↓ 1 callersFunctionscanRow
(row *sql.Rows)
export/nameserver.go:146
↓ 1 callersFunctionstartMetrics
()
prometheus.go:19
↓ 1 callersMethodtargetName
()
export/exporter.go:49
↓ 1 callersMethodwatcher
watcher runs periodically check() until shutdown
geoip/geoip.go:81
↓ 1 callersMethodworker
()
check/work.go:18
↓ 1 callersMethodwrite
(*Nameserver)
export/exporter.go:14
MethodCollect
Collect collects metrics for Prometheus
prometheus.go:35
MethodDescribe
Describe describes metrics for Prometheus
prometheus.go:28
FunctionTestAuthenticated
(t *testing.T)
check/lookup_test.go:35
FunctionTestCheckResult
(t *testing.T)
check/check_test.go:9
FunctionTestCheckResultEmpty
(t *testing.T)
check/check_test.go:33
FunctionTestCompare
(t *testing.T)
check/stringSet_test.go:9
FunctionTestExistent
(t *testing.T)
check/lookup_test.go:18
FunctionTestNotExistent
(t *testing.T)
check/lookup_test.go:26
FunctionTestPtrName
(t *testing.T)
check/lookup_test.go:51
FunctionTestReadDomains
(t *testing.T)
check/check_test.go:51
FunctionTestSimplifyNetworkUnreachable
(t *testing.T)
check/helper_test.go:17
FunctionTestSimplifyTimeout
(t *testing.T)
check/helper_test.go:10
FunctionTestString
(t *testing.T)
check/stringSet_test.go:29
FunctionTestUnreachable
(t *testing.T)
check/lookup_test.go:44
FunctionTestVersion
(t *testing.T)
check/lookup_test.go:58
Methodclose
()
export/exporter.go:103
MethodconvertNS
(ns *Nameserver)
export/exporter_text.go:20
MethodconvertNS
(ns *Nameserver)
export/exporter_json.go:24
MethodconvertNS
(*Nameserver)
export/exporter.go:10
MethodconvertNS
(_ *Nameserver)
export/exporter_csv.go:44
Functioninit
()
main.go:38
Functionmain
()
main.go:46
FunctionnewCSVExporter
(tpl string)
export/exporter_csv.go:17
FunctionnewJSONExporter
(tpl string)
export/exporter_json.go:16
FunctionnewTextExporter
(tpl string)
export/exporter_text.go:12
Methodwrite
(ns *Nameserver)
export/exporter.go:72
Methodwrite
with code from encoding/csv (https://golang.org/src/encoding/csv/writer.go#L40) but without options (Comma, UseCLRF)
export/exporter_csv.go:34