Documentation ¶
Overview ¶
Package dnsdb contains types and utilities for collecting anonymous statistics about the Internet.
TODO(a.garipov): This needs way more tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
type Default struct {
// contains filtered or unexported fields
}
Default is the default DNSDB implementation.
func New ¶
func New(c *DefaultConfig) (db *Default)
New creates a new default DNS database. c must not be nil.
type DefaultConfig ¶
type DefaultConfig struct { // ErrColl is used to collect HTTP errors. ErrColl errcoll.Interface // MaxSize is the maximum amount of records in the memory buffer. MaxSize int }
DefaultConfig is the default DNS database configuration structure.
Click to show internal directories.
Click to hide internal directories.