Miek Gieben
9bf52083d1
golint fixes
2015-08-23 08:03:13 +01:00
Peter M. Goldstein
34a9377404
Update the value of MaxMsgSize
2015-03-09 13:51:11 -07:00
Miek Gieben
64fea017a2
Move all docs to docs.go
...
Another golint change.
2015-02-19 13:47:50 +00:00
Miek Gieben
faa311bf55
golint: more docs
2015-02-19 11:26:46 +00:00
Miek Gieben
67945c119e
A bunch of golint fixes
...
The proposed vars names are a nono, because they break the API.
Things left: document each RR and zscan_rr.go has some funcky if-then-elses.
2015-02-19 09:58:33 +00:00
Miek Gieben
5d8dbab4c8
Remove the fmt Formatters
...
Formatters are not needs you can access the members just fine.
However the rdata Field access function are handy and non-trivial,
extend them and add a basic test.
2015-01-13 10:20:34 +00:00
Miek Gieben
aaa3aba4ed
Implement custom verbs for fmt.Printf use
...
The dns package implements String() for all RR types, but sometimes you will
need more flexibility. The functions Printf, Sprintf, etc. implemented formatted I/O
for the RR type.
Printing
The verbs:
Generic part of RRs:
%N the owner name of the RR
%C the class: IN, CH, CLASS15, etc.
%D the TTL in seconds
%Y the type: MX, A, etc.
The rdata of each RR differs, we allow each field to be printed as a string.
Rdata:
%0 the first rdata field
%1 the second rdata field
%2 the third rdata field
.. ...
%9 the nineth rdata field
%R all rdata fields
The rdata fields remain a TODO, but will be implemented using
reflection.
2015-01-11 17:23:02 +00:00
Miek Gieben
0aa3021a83
Remove all copyright notices
...
Use the central COPYRIGHT file.
2014-09-11 20:57:37 +01:00
Miek Gieben
b6da65c4b0
typo in the docs
2014-09-11 08:49:16 +01:00
Miek Gieben
18c150f21a
zoneMatch is not used
2014-08-30 15:09:01 +01:00
Miek Gieben
4dd48338af
documentation tweaks
2014-07-30 07:35:06 +01:00
Miek Gieben
b7a8c14d7d
Add dns.Name as a type
...
This can be used for printing names.
2014-04-23 21:06:17 +01:00
Miek Gieben
6295f64c1c
Make sprintDomain public as NameToString
2014-04-23 20:58:55 +01:00
Andrew Tunnell-Jones
bd189318ed
Document domain name and TXT escaping behaviour
2014-03-02 10:38:46 +00:00
Andrew Tunnell-Jones
3f834a04fb
Update domain name and TXT string escape behaviour
...
Changes to domain name packing and unpacking:
* Escape dot, backslash, brackets, double-quote, semi-colon and space
* Tab, line feed and carriage return become \t, \n and \r
Changes to TXT string packing and unpacking:
* Escape backslash and double-quote
* Tab, line feed and carriage return become \t, \n and \r
* Other unprintables to \DDD
Stringers do the equivalent of putting domain names and TXT strings
to the wire and back.
There is some duplication of logic. I found performance suffered when
I broke the logic out into smaller functions. I think this may have
been due to functions not being inlined for various reasons.
2014-02-26 10:55:11 +00:00
Miek Gieben
87b380cad5
Revert "Use dLen for domain name length"
...
This reverts commit b595183834
.
Fix up the tests too.
2014-02-14 20:20:22 +00:00
Miek Gieben
b595183834
Use dLen for domain name length
2014-02-12 12:50:16 +00:00
Brandon Philips
870c049f52
fix(dns.go): Pref is now Preference
...
Simple mistake from, what I guess, was an earlier API change.
2014-01-25 15:57:16 -08:00
Miek Gieben
37356f5e68
Documenation fixes
2014-01-12 10:43:59 +00:00
Miek Gieben
1c343223b5
Go over the documentation again
2013-10-15 13:42:24 +00:00
Miek Gieben
b06d42f1d7
correct documentation
2013-09-29 11:50:09 +01:00
Miek Gieben
9a38f97391
Fix timeouts, Tsig and EDNS0 update size
2013-09-29 11:21:18 +01:00
Miek Gieben
140e525195
More documentation
2013-09-28 22:05:48 +01:00
Miek Gieben
2b6e9122bd
Use the better name: SingleInflight
2013-09-06 09:49:07 +00:00
Miek Gieben
0adc9a3afe
Update doc and TODO
2013-09-06 09:45:30 +00:00
Miek Gieben
70f9c6b964
Make err non-exported
2013-06-20 07:25:29 +01:00
Miek Gieben
8e68ad38d6
Use new stuff here too
2013-06-08 14:24:20 +01:00
Miek Gieben
15d8cdc5f9
Fix: the *dns.TXT instead of *TXT
2013-06-04 11:37:11 +02:00
Miek Gieben
98b677a97c
Update the copy right for the original GO files
2013-05-12 16:07:06 +02:00
Miek Gieben
d53d9eab81
gofmt
2013-05-05 20:30:44 +02:00
Miek Gieben
d2551c5c84
Docs and todo update
2013-04-17 08:47:07 +01:00
Miek Gieben
cd10853288
Make Len() and Copy() private
...
I don't think anybody will needs these, msg.Len() is still
available. Severly cuts back on the amount of exported functions.
2013-02-09 08:35:17 +01:00
Miek Gieben
78619c08e4
Make it a method
2013-01-31 09:52:34 +01:00
Miek Gieben
9357ac3eff
docs
2013-01-30 15:56:29 +01:00
Miek Gieben
625de563d0
Convert an RR to its unknown representation
2013-01-30 15:55:50 +01:00
Miek Gieben
2e02b42558
Fix documentation too
2012-12-09 20:20:16 +01:00
Miek Gieben
2a3b818b95
Use much more descriptive names for the maps
...
Alg_str -> AlgorithmToString
Rr_str -> TypeToString
And for the reverse maps also.
2012-12-02 09:29:54 +01:00
Miek Gieben
8d6d7593b8
add some extra text
2012-12-01 22:54:35 +01:00
Miek Gieben
c86d0c4331
tweak layout
2012-11-30 13:25:01 +01:00
Miek Gieben
aaa65c0ae0
documentation
2012-11-20 10:10:09 +01:00
Miek Gieben
53bc98f2ca
update docs
2012-11-19 18:14:52 +01:00
Miek Gieben
e2ca025569
update documentation
2012-11-19 16:22:54 +01:00
Miek Gieben
76509f1f52
docs
2012-10-20 09:23:10 +02:00
Miek Gieben
19470ba22d
Add a space
2012-10-09 22:16:28 +02:00
Miek Gieben
099c19d5b2
Fix errors
2012-10-09 20:25:25 +02:00
Miek Gieben
03a8bfbb88
uses struct embedding
2012-09-05 16:30:04 +02:00
Miek Gieben
f51929ddfd
doc tweaks
2012-09-03 14:03:04 +02:00
Miek Gieben
6058dce1db
small correction
2012-09-03 12:36:03 +02:00
Miek Gieben
9a5ffa1038
fix merge conflict
2012-09-01 17:20:05 +02:00
Miek Gieben
853248eeb4
documentation
2012-09-01 11:35:00 +02:00