go-http-peering/request.go

25 lines
391 B
Go
Raw Normal View History

2019-02-03 20:56:58 +01:00
package peering
import jwt "github.com/dgrijalva/jwt-go"
const (
AdvertisePath = "/advertise"
UpdatePath = "/update"
PingPath = "/ping"
)
type AdvertisingRequest struct {
ID PeerID
Attributes PeerAttributes
PublicKey []byte
}
type UpdateRequest struct {
Attributes PeerAttributes
}
type PeerClaims struct {
jwt.StandardClaims
BodySum []byte `json:"bodySum"`
}