mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2025-09-26 20:51:15 +08:00
20 lines
658 B
Go
20 lines
658 B
Go
package openp2p
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// error message
|
|
var (
|
|
// ErrorS2S string = "s2s is not supported"
|
|
// ErrorHandshake string = "handshake error"
|
|
ErrorS2S = errors.New("s2s is not supported")
|
|
ErrorHandshake = errors.New("handshake error")
|
|
ErrorNewUser = errors.New("new user")
|
|
ErrorLogin = errors.New("user or password not correct")
|
|
ErrNodeTooShort = errors.New("node name too short, it must >=8 charaters")
|
|
ErrPeerOffline = errors.New("peer offline")
|
|
ErrMsgFormat = errors.New("message format wrong")
|
|
ErrVersionNotCompatible = errors.New("version not compatible")
|
|
)
|