Documentation
¶
Index ¶
Constants ¶
View Source
const (
MSGMAX = ((V1_HDR_LEN + V1_AREC_MAX_LEN + 2 + 255 + 16) / 16) * 16 // round up to 16 byte boundary (304)
)
Variables ¶
View Source
var ( RequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: plugin.Namespace, Subsystem: "ipref", Name: "request_duration_seconds", Buckets: plugin.TimeBuckets, Help: "Histogram of the time each request took.", }, []string{"server"}) RcodeCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "ipref", Name: "response_rcode_count_total", Help: "Counter of rcodes made per request.", }, []string{"server", "rcode"}) )
Metrics exported by the ipref plugin.
View Source
var NoAARecordsFound = errors.New("no valid AA records found")
View Source
var UnsupportedRRType = errors.New("unsupported RR type")
Functions ¶
This section is empty.
Types ¶
type MapperClient ¶
type MapperClient struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.