You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

request.go 465B

12345678910111213141516171819202122232425262728
  1. package peering
  2. import jwt "github.com/dgrijalva/jwt-go"
  3. const (
  4. AdvertisePath = "/advertise"
  5. UpdatePath = "/update"
  6. PingPath = "/ping"
  7. )
  8. type AdvertisingRequest struct {
  9. Attributes PeerAttributes
  10. PublicKey []byte
  11. }
  12. type UpdateRequest struct {
  13. Attributes PeerAttributes
  14. }
  15. type ClientTokenClaims struct {
  16. jwt.StandardClaims
  17. BodySum []byte `json:"bodySum"`
  18. }
  19. type ServerTokenClaims struct {
  20. jwt.StandardClaims
  21. PeerID PeerID `json:"peerID"`
  22. }