documentation
This commit is contained in:
parent
8aa88a0bd3
commit
ec0a52ccac
30
msg.go
30
msg.go
|
@ -27,20 +27,22 @@ import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ErrUnpack os.Error = &Error{Error: "unpacking failed"}
|
var (
|
||||||
var ErrPack os.Error = &Error{Error: "packing failed"}
|
ErrUnpack os.Error = &Error{Error: "unpacking failed"}
|
||||||
var ErrId os.Error = &Error{Error: "id mismatch"}
|
ErrPack os.Error = &Error{Error: "packing failed"}
|
||||||
var ErrShortRead os.Error = &Error{Error: "short read"}
|
ErrId os.Error = &Error{Error: "id mismatch"}
|
||||||
var ErrConn os.Error = &Error{Error: "conn holds both UDP and TCP connection"}
|
ErrShortRead os.Error = &Error{Error: "short read"}
|
||||||
var ErrServ os.Error = &Error{Error: "no servers could be reached"}
|
ErrConn os.Error = &Error{Error: "conn holds both UDP and TCP connection"}
|
||||||
var ErrKey os.Error = &Error{Error: "bad key"}
|
ErrServ os.Error = &Error{Error: "no servers could be reached"}
|
||||||
var ErrPrivKey os.Error = &Error{Error: "bad private key"}
|
ErrKey os.Error = &Error{Error: "bad key"}
|
||||||
var ErrKeySize os.Error = &Error{Error: "bad key size"}
|
ErrPrivKey os.Error = &Error{Error: "bad private key"}
|
||||||
var ErrAlg os.Error = &Error{Error: "bad algorithm"}
|
ErrKeySize os.Error = &Error{Error: "bad key size"}
|
||||||
var ErrTime os.Error = &Error{Error: "bad time"}
|
ErrAlg os.Error = &Error{Error: "bad algorithm"}
|
||||||
var ErrSig os.Error = &Error{Error: "bad signature"}
|
ErrTime os.Error = &Error{Error: "bad time"}
|
||||||
var ErrSigGen os.Error = &Error{Error: "bad signature generation"}
|
ErrSig os.Error = &Error{Error: "bad signature"}
|
||||||
var ErrXfrSoa os.Error = &Error{Error: "no SOA seen"}
|
ErrSigGen os.Error = &Error{Error: "bad signature generation"}
|
||||||
|
ErrXfrSoa os.Error = &Error{Error: "no SOA seen"}
|
||||||
|
)
|
||||||
|
|
||||||
// A manually-unpacked version of (id, bits).
|
// A manually-unpacked version of (id, bits).
|
||||||
// This is in its own struct for easy printing.
|
// This is in its own struct for easy printing.
|
||||||
|
|
Loading…
Reference in New Issue