github.com/number571/tendermint@v0.34.11-gost/proto/tendermint/p2p/pex.proto (about) 1 syntax = "proto3"; 2 package tendermint.p2p; 3 4 option go_package = "github.com/number571/tendermint/proto/tendermint/p2p"; 5 6 import "gogoproto/gogo.proto"; 7 8 message PexAddress { 9 string id = 1 [(gogoproto.customname) = "ID"]; 10 string ip = 2 [(gogoproto.customname) = "IP"]; 11 uint32 port = 3; 12 } 13 14 message PexRequest {} 15 16 message PexResponse { 17 repeated PexAddress addresses = 1 [(gogoproto.nullable) = false]; 18 } 19 20 message PexAddressV2 { 21 string url = 1 [(gogoproto.customname) = "URL"]; 22 } 23 24 message PexRequestV2 {} 25 26 message PexResponseV2 { 27 repeated PexAddressV2 addresses = 1 [(gogoproto.nullable) = false]; 28 } 29 30 message PexMessage { 31 oneof sum { 32 PexRequest pex_request = 1; 33 PexResponse pex_response = 2; 34 PexRequestV2 pex_request_v2 = 3; 35 PexResponseV2 pex_response_v2 = 4; 36 } 37 }