Documentation ¶
Index ¶
Constants ¶
View Source
const ( // v1 constants V1_SIG = 0x11 // v1 signature V1_HDR_LEN = 8 V1_AREC_LEN = 4 + 4 + 4 + 8 + 8 // ea + ip + gw + ref.h + ref.l // v1 header offsets V1_VER = 0 V1_CMD = 1 V1_PKTID = 2 V1_RESERVED = 4 V1_PKTLEN = 6 // v1 arec offsets V1_AREC_EA = 0 V1_AREC_IP = 4 V1_AREC_GW = 8 V1_AREC_REFH = 12 V1_AREC_REFL = 20 // v1 commands V1_MC_GET_EA = 7 // v1 tlv types V1_TYPE_STRING = 4 // v1 command mode, top two bits V1_DATA = 0x00 V1_REQ = 0x40 V1_ACK = 0x80 V1_NACK = 0xC0 )
View Source
const (
MSGMAX = ((V1_HDR_LEN + V1_AREC_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.
Functions ¶
This section is empty.
Types ¶
type Ipref ¶
Ipref is a plugin that resolves requests using libunbound.
type MapperClient ¶
type MapperClient struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.