Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBlockBuilder ¶
Types ¶
type Cache ¶
func BuildCache ¶
func BuildCache(userSettings config.Cache, metrics CacheMetrics) (cache Cache, err error)
type CacheMetrics ¶
type CacheMetrics interface { SetCacheType(cacheType string) CacheInsertInc() CacheRemoveInc() CacheMoveInc() CacheGetEmptyInc() CacheInsertEmptyInc() CacheRemoveEmptyInc() CacheHitInc() CacheMissInc() CacheExpiredInc() CacheMaxEntriesSet(maxEntries int) }
func BuildCacheMetrics ¶
func BuildCacheMetrics(userSettings config.Metrics, registry PrometheusRegistry) ( metrics CacheMetrics, err error)
type DoHMetrics ¶
type DoTMetrics ¶
type FilterMetrics ¶
type FilterMetrics interface { SetBlockedHostnames(n int) SetBlockedIPs(n int) SetBlockedIPPrefixes(n int) HostnamesFilteredInc(qClass, qType string) IPsFilteredInc(rrtype string) }
func BuildFilterMetrics ¶
func BuildFilterMetrics(userSettings config.Metrics, registry PrometheusRegistry) ( metrics FilterMetrics, err error)
type LoggerConstructor ¶
type Middleware ¶
type PrometheusRegistry ¶
type PrometheusRegistry interface { prometheus.Registerer }
Click to show internal directories.
Click to hide internal directories.