doc tweaks
This commit is contained in:
parent
ff946625a6
commit
6e9317868b
|
@ -20,8 +20,8 @@ type reply struct {
|
|||
t time.Time
|
||||
}
|
||||
|
||||
// A Client is uses when initiating a query to a nameserver. A nil
|
||||
// Client is usable.
|
||||
// A Client defines parameter for a DNS client. A nil
|
||||
// Client is usable for sending queries.
|
||||
type Client struct {
|
||||
Net string // if "tcp" a TCP query will be initiated, otherwise an UDP one (default is "", is UDP)
|
||||
Attempts int // number of attempts, if not set defaults to 1
|
||||
|
|
1
types.go
1
types.go
|
@ -71,6 +71,7 @@ const (
|
|||
TypeMAILB uint16 = 253
|
||||
TypeMAILA uint16 = 254
|
||||
TypeANY uint16 = 255
|
||||
|
||||
TypeURI uint16 = 256
|
||||
TypeTA uint16 = 32768
|
||||
TypeDLV uint16 = 32769
|
||||
|
|
2
zone.go
2
zone.go
|
@ -118,7 +118,7 @@ func (z *Zone) Insert(r RR) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Remove removes the RR r from the zone. If there RR can not be found,
|
||||
// Remove removes the RR r from the zone. If the RR can not be found,
|
||||
// this is a no-op.
|
||||
func (z *Zone) Remove(r RR) error {
|
||||
key := toRadixName(r.Header().Name)
|
||||
|
|
Loading…
Reference in New Issue