From 116ad952581d6e29616927749239b73daf6bfd71 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Tue, 24 Nov 2020 14:17:56 +0300 Subject: [PATCH] all: improve documentation --- dns_engine.go | 6 +++--- rules/request.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dns_engine.go b/dns_engine.go index 998c0dc..871a201 100644 --- a/dns_engine.go +++ b/dns_engine.go @@ -32,9 +32,9 @@ type DNSRequest struct { ClientIP string // Client IP address ClientName string // Client name - // DNSType is the DNS request record type (RR), for example "A" or - // "AAAA". See package github.com/miekg/dns for all acceptable - // constants. + // DNSType is the type of the resource record (RR) of a DNS request, for + // example "A" or "AAAA". See package github.com/miekg/dns for all + // acceptable constants. DNSType uint16 } diff --git a/rules/request.go b/rules/request.go index d4f90e1..ec215a5 100644 --- a/rules/request.go +++ b/rules/request.go @@ -69,8 +69,8 @@ type Request struct { Hostname string // Request hostname Domain string // Request domain (eTLD+1) - // DNSType is the DNS record type (RR) of the request. See package - // github.com/miekg/dns for all acceptable constants. + // DNSType is the type of the resource record (RR) of a DNS request. + // See package github.com/miekg/dns for all acceptable constants. DNSType uint16 SourceURL string // Source URL