Initial commit

This commit is contained in:
2025-01-09 02:31:15 -05:00
commit 1bc804190e
18 changed files with 2104 additions and 0 deletions

14
error.go Normal file
View File

@@ -0,0 +1,14 @@
package hopp
// Error enumerates common errors in this package.
type Error string; const (
ErrWrongMessageLength Error = "wrong message length"
ErrUnknownMethod Error = "unknown method"
ErrPayloadTooLarge Error = "payload too large"
ErrUnknownNetwork Error = "unknown network"
)
// Error implements the error interface.
func (err Error) Error() string {
return string(err)
}