25 lines
391 B
Go
25 lines
391 B
Go
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"`
|
|
}
|