Documentation updates
This commit is contained in:
parent
34ac642c72
commit
574544eb08
3
msg.go
3
msg.go
|
@ -36,7 +36,8 @@ var (
|
||||||
// ErrExtendedRcode ...
|
// ErrExtendedRcode ...
|
||||||
ErrExtendedRcode error = &Error{err: "bad extended rcode"}
|
ErrExtendedRcode error = &Error{err: "bad extended rcode"}
|
||||||
// ErrFqdn indicates that a domain name does not have a closing dot.
|
// ErrFqdn indicates that a domain name does not have a closing dot.
|
||||||
ErrFqdn error = &Error{err: "domain must be fully qualified"}
|
ErrFqdn error = &Error{err: "domain must be fully qualified"}
|
||||||
|
// ErrId indicates there is a mismatch with the message's ID.
|
||||||
ErrId error = &Error{err: "id mismatch"}
|
ErrId error = &Error{err: "id mismatch"}
|
||||||
ErrKeyAlg error = &Error{err: "bad key algorithm"}
|
ErrKeyAlg error = &Error{err: "bad key algorithm"}
|
||||||
ErrKey error = &Error{err: "bad key"}
|
ErrKey error = &Error{err: "bad key"}
|
||||||
|
|
9
types.go
9
types.go
|
@ -23,6 +23,7 @@ type (
|
||||||
// Wire constants and supported types.
|
// Wire constants and supported types.
|
||||||
const (
|
const (
|
||||||
// valid RR_Header.Rrtype and Question.qtype
|
// valid RR_Header.Rrtype and Question.qtype
|
||||||
|
|
||||||
TypeNone uint16 = 0
|
TypeNone uint16 = 0
|
||||||
TypeA uint16 = 1
|
TypeA uint16 = 1
|
||||||
TypeNS uint16 = 2
|
TypeNS uint16 = 2
|
||||||
|
@ -94,7 +95,9 @@ const (
|
||||||
|
|
||||||
TypeTKEY uint16 = 249
|
TypeTKEY uint16 = 249
|
||||||
TypeTSIG uint16 = 250
|
TypeTSIG uint16 = 250
|
||||||
|
|
||||||
// valid Question.Qtype only
|
// valid Question.Qtype only
|
||||||
|
|
||||||
TypeIXFR uint16 = 251
|
TypeIXFR uint16 = 251
|
||||||
TypeAXFR uint16 = 252
|
TypeAXFR uint16 = 252
|
||||||
TypeMAILB uint16 = 253
|
TypeMAILB uint16 = 253
|
||||||
|
@ -108,6 +111,7 @@ const (
|
||||||
TypeReserved uint16 = 65535
|
TypeReserved uint16 = 65535
|
||||||
|
|
||||||
// valid Question.Qclass
|
// valid Question.Qclass
|
||||||
|
|
||||||
ClassINET = 1
|
ClassINET = 1
|
||||||
ClassCSNET = 2
|
ClassCSNET = 2
|
||||||
ClassCHAOS = 3
|
ClassCHAOS = 3
|
||||||
|
@ -116,6 +120,7 @@ const (
|
||||||
ClassANY = 255
|
ClassANY = 255
|
||||||
|
|
||||||
// Msg.rcode
|
// Msg.rcode
|
||||||
|
|
||||||
RcodeSuccess = 0
|
RcodeSuccess = 0
|
||||||
RcodeFormatError = 1
|
RcodeFormatError = 1
|
||||||
RcodeServerFailure = 2
|
RcodeServerFailure = 2
|
||||||
|
@ -136,11 +141,11 @@ const (
|
||||||
RcodeBadAlg = 21
|
RcodeBadAlg = 21
|
||||||
RcodeBadTrunc = 22 // TSIG
|
RcodeBadTrunc = 22 // TSIG
|
||||||
|
|
||||||
// Opcode
|
// Opcode, there is no 3
|
||||||
|
|
||||||
OpcodeQuery = 0
|
OpcodeQuery = 0
|
||||||
OpcodeIQuery = 1
|
OpcodeIQuery = 1
|
||||||
OpcodeStatus = 2
|
OpcodeStatus = 2
|
||||||
// There is no 3
|
|
||||||
OpcodeNotify = 4
|
OpcodeNotify = 4
|
||||||
OpcodeUpdate = 5
|
OpcodeUpdate = 5
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue