small tweaks

This commit is contained in:
Miek Gieben 2011-03-25 16:43:47 +01:00
parent 44fec2a605
commit 8637ca2219
2 changed files with 10 additions and 12 deletions

7
TODO
View File

@ -1,9 +1,9 @@
Guidelines for the API:
o symmetrical, client side stuff should be mirrored in the server stuff Guidelines for the API:
o symmetrical, client side should be mirrored in the server
o clean, small API o clean, small API
o fast data structures (rb-tree, when they come available) o fast data structures (rb-tree, when they come available)
o api-use should lead to self documenting code o api-use should be self documenting
o make questions fqdns -- add last dot o make questions fqdns -- add last dot
o zone structure -- only as rb-tree o zone structure -- only as rb-tree
@ -24,7 +24,6 @@ Issues:
* Check the network order, it works now, but this is on Intel?? * Check the network order, it works now, but this is on Intel??
* Make the testsuite work with public DNS servers * Make the testsuite work with public DNS servers
* pack/Unpack smaller. EDNS 'n stuff can be folded in * pack/Unpack smaller. EDNS 'n stuff can be folded in
* SetDefaults() for *all* types?
Examples: Examples:
* Test impl of nameserver, with a small zone, 1 KSK and online signing * Test impl of nameserver, with a small zone, 1 KSK and online signing

15
xfr.go
View File

@ -4,17 +4,16 @@ import (
"os" "os"
) )
// Outgoing AXFR and IXFR implementations // Xfr is used in communicating with Xfr* functions.
// error handling??
// Xfr is used in communicating with *xfr functions.
// If Add is true the resource record in RR must be added to
// the zone. If Add is false the resource record must be removed.
// If err in non nil some error occurred and the transfer must
// be considered to have failed.
type Xfr struct { type Xfr struct {
// If Add is true the resource record in RR must be added to
// the zone. If Add is false the resource record must be removed.
// be considered to have failed.
Add bool Add bool
// The RR that should be added or removed.
RR RR
// If err in non nil some error occurred and the transfer must
// be considered to have faild.
Err os.Error Err os.Error
} }