refactor: get rid of router/utils.go

most functions end up in other files in the router package, but a few
land in common.
This commit is contained in:
Matthias Radestock committed 2015-11-07 15:45:29 +00:00
1 parent 7a5c910cd5
commit 8bd77c0d47
11 files changed
+114 -125

No files matched your search

+4
View File
@@ -180,6 +180,10 @@ type PacketDecodingError struct {
Desc string
}
func (pde PacketDecodingError) Error() string {
return fmt.Sprint("Failed to decode packet: ", pde.Desc)
}
func NewNonDecryptor() *NonDecryptor {
return &NonDecryptor{}
}