2024-03-11 15:34:06 +01:00
|
|
|
package proto
|
|
|
|
|
2024-03-13 23:46:05 +01:00
|
|
|
import "errors"
|
|
|
|
|
2024-03-11 15:34:06 +01:00
|
|
|
type ErrJSONResponse struct {
|
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
2024-03-13 23:46:05 +01:00
|
|
|
|
|
|
|
type PeerExistsErr struct {
|
|
|
|
PublicKey string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e PeerExistsErr) Error() string {
|
|
|
|
return e.PublicKey
|
|
|
|
}
|
|
|
|
|
|
|
|
var PeerDoesNotExist = errors.New("Peer does not exist")
|
|
|
|
|