Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AddIPCount = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "ipset", Name: "add_ip_count_total", Help: "Counter of add IP to ipset.", }, []string{"to"}) )
Variables declared for monitoring.
Functions ¶
This section is empty.
Types ¶
type DotSegmentIterator ¶
type DotSegmentIterator struct {
// contains filtered or unexported fields
}
func NewDotSegmentRevertIterator ¶
func NewDotSegmentRevertIterator(value string) *DotSegmentIterator
func (*DotSegmentIterator) HasNext ¶
func (iterator *DotSegmentIterator) HasNext() bool
func (*DotSegmentIterator) Next ¶
func (iterator *DotSegmentIterator) Next() int
func (*DotSegmentIterator) NextIdx ¶
func (iterator *DotSegmentIterator) NextIdx() int
type ResponseReverter ¶
type ResponseReverter struct { dns.ResponseWriter // contains filtered or unexported fields }
ResponseReverter reverses the operations done on the question section of a packet. This is need because the client will otherwise disregards the response, i.e. dig will complain with ';; Question section mismatch: got example.org/HINFO/IN'
func NewResponseReverter ¶
func NewResponseReverter(w dns.ResponseWriter, r *dns.Msg, ipset *IPSet) *ResponseReverter
NewResponseReverter returns a pointer to a new ResponseReverter.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.