MCPcopy
hub / github.com/AdguardTeam/dnsproxy / cachedQueryStatistics

Function cachedQueryStatistics

proxy/stats.go:68–75  ·  view source on GitHub ↗

cachedQueryStatistics returns the DNS query statistics for cached queries.

(addr string)

Source from the content-addressed store, hash-verified

66
67// cachedQueryStatistics returns the DNS query statistics for cached queries.
68func cachedQueryStatistics(addr string) (s *QueryStatistics) {
69 return &QueryStatistics{
70 main: []*UpstreamStatistics{{
71 Address: addr,
72 IsCached: true,
73 }},
74 }
75}
76
77// Main returns the DNS query statistics for the upstream DNS servers. us and
78// its items must not be modified.

Callers 1

replyFromCacheMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…