mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-16 17:46:14 -08:00
This PR refactors EasyTier's configuration flags system across protobuf definitions, TOML/API persistence, runtime reconciliation, and the CLI. It introduces a synthesized FlagsPatch protobuf message with optionize and pbjson support to track field presence reliably, replaces manual CLI flag boilerplate with dynamic schema-driven clap argument generation, and establishes Flags::resolve(patch) as the single source of truth for runtime defaults. Co-authored-by: Claude Code <noreply@anthropic.com>
3914 lines
133 KiB
Go
3914 lines
133 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.36.1
|
|
// source: peer_rpc.proto
|
|
|
|
package peer_rpc
|
|
|
|
import (
|
|
common "github.com/easytier/easytier/easytier-go/proto/common"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type SyncRouteInfoError int32
|
|
|
|
const (
|
|
SyncRouteInfoError_DuplicatePeerId SyncRouteInfoError = 0
|
|
SyncRouteInfoError_Stopped SyncRouteInfoError = 1
|
|
)
|
|
|
|
// Enum value maps for SyncRouteInfoError.
|
|
var (
|
|
SyncRouteInfoError_name = map[int32]string{
|
|
0: "DuplicatePeerId",
|
|
1: "Stopped",
|
|
}
|
|
SyncRouteInfoError_value = map[string]int32{
|
|
"DuplicatePeerId": 0,
|
|
"Stopped": 1,
|
|
}
|
|
)
|
|
|
|
func (x SyncRouteInfoError) Enum() *SyncRouteInfoError {
|
|
p := new(SyncRouteInfoError)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x SyncRouteInfoError) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (SyncRouteInfoError) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_peer_rpc_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (SyncRouteInfoError) Type() protoreflect.EnumType {
|
|
return &file_peer_rpc_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x SyncRouteInfoError) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use SyncRouteInfoError.Descriptor instead.
|
|
func (SyncRouteInfoError) EnumDescriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type SecureAuthLevel int32
|
|
|
|
const (
|
|
SecureAuthLevel_None SecureAuthLevel = 0
|
|
SecureAuthLevel_EncryptedUnauthenticated SecureAuthLevel = 1
|
|
SecureAuthLevel_PeerVerified SecureAuthLevel = 2
|
|
SecureAuthLevel_NetworkSecretConfirmed SecureAuthLevel = 3
|
|
)
|
|
|
|
// Enum value maps for SecureAuthLevel.
|
|
var (
|
|
SecureAuthLevel_name = map[int32]string{
|
|
0: "None",
|
|
1: "EncryptedUnauthenticated",
|
|
2: "PeerVerified",
|
|
3: "NetworkSecretConfirmed",
|
|
}
|
|
SecureAuthLevel_value = map[string]int32{
|
|
"None": 0,
|
|
"EncryptedUnauthenticated": 1,
|
|
"PeerVerified": 2,
|
|
"NetworkSecretConfirmed": 3,
|
|
}
|
|
)
|
|
|
|
func (x SecureAuthLevel) Enum() *SecureAuthLevel {
|
|
p := new(SecureAuthLevel)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x SecureAuthLevel) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (SecureAuthLevel) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_peer_rpc_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (SecureAuthLevel) Type() protoreflect.EnumType {
|
|
return &file_peer_rpc_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x SecureAuthLevel) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use SecureAuthLevel.Descriptor instead.
|
|
func (SecureAuthLevel) EnumDescriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type PeerIdentityType int32
|
|
|
|
const (
|
|
PeerIdentityType_Admin PeerIdentityType = 0
|
|
PeerIdentityType_Credential PeerIdentityType = 1
|
|
PeerIdentityType_SharedNode PeerIdentityType = 2
|
|
)
|
|
|
|
// Enum value maps for PeerIdentityType.
|
|
var (
|
|
PeerIdentityType_name = map[int32]string{
|
|
0: "Admin",
|
|
1: "Credential",
|
|
2: "SharedNode",
|
|
}
|
|
PeerIdentityType_value = map[string]int32{
|
|
"Admin": 0,
|
|
"Credential": 1,
|
|
"SharedNode": 2,
|
|
}
|
|
)
|
|
|
|
func (x PeerIdentityType) Enum() *PeerIdentityType {
|
|
p := new(PeerIdentityType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PeerIdentityType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PeerIdentityType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_peer_rpc_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (PeerIdentityType) Type() protoreflect.EnumType {
|
|
return &file_peer_rpc_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x PeerIdentityType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PeerIdentityType.Descriptor instead.
|
|
func (PeerIdentityType) EnumDescriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type PeerConnSessionActionPb int32
|
|
|
|
const (
|
|
PeerConnSessionActionPb_Join PeerConnSessionActionPb = 0
|
|
PeerConnSessionActionPb_Sync PeerConnSessionActionPb = 1
|
|
PeerConnSessionActionPb_Create PeerConnSessionActionPb = 2
|
|
)
|
|
|
|
// Enum value maps for PeerConnSessionActionPb.
|
|
var (
|
|
PeerConnSessionActionPb_name = map[int32]string{
|
|
0: "Join",
|
|
1: "Sync",
|
|
2: "Create",
|
|
}
|
|
PeerConnSessionActionPb_value = map[string]int32{
|
|
"Join": 0,
|
|
"Sync": 1,
|
|
"Create": 2,
|
|
}
|
|
)
|
|
|
|
func (x PeerConnSessionActionPb) Enum() *PeerConnSessionActionPb {
|
|
p := new(PeerConnSessionActionPb)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PeerConnSessionActionPb) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PeerConnSessionActionPb) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_peer_rpc_proto_enumTypes[3].Descriptor()
|
|
}
|
|
|
|
func (PeerConnSessionActionPb) Type() protoreflect.EnumType {
|
|
return &file_peer_rpc_proto_enumTypes[3]
|
|
}
|
|
|
|
func (x PeerConnSessionActionPb) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PeerConnSessionActionPb.Descriptor instead.
|
|
func (PeerConnSessionActionPb) EnumDescriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type TrustedCredentialPubkey struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` // X25519 public key (32 bytes)
|
|
Groups []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` // ACL groups this credential belongs to
|
|
AllowRelay bool `protobuf:"varint,3,opt,name=allow_relay,json=allowRelay,proto3" json:"allow_relay,omitempty"` // whether this credential node can relay data
|
|
ExpiryUnix int64 `protobuf:"varint,4,opt,name=expiry_unix,json=expiryUnix,proto3" json:"expiry_unix,omitempty"` // expiry time (Unix timestamp)
|
|
AllowedProxyCidrs []string `protobuf:"bytes,5,rep,name=allowed_proxy_cidrs,json=allowedProxyCidrs,proto3" json:"allowed_proxy_cidrs,omitempty"` // allowed proxy_cidrs ranges
|
|
Reusable *bool `protobuf:"varint,6,opt,name=reusable,proto3,oneof" json:"reusable,omitempty"` // whether multiple peers may use the same credential concurrently
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkey) Reset() {
|
|
*x = TrustedCredentialPubkey{}
|
|
mi := &file_peer_rpc_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkey) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TrustedCredentialPubkey) ProtoMessage() {}
|
|
|
|
func (x *TrustedCredentialPubkey) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TrustedCredentialPubkey.ProtoReflect.Descriptor instead.
|
|
func (*TrustedCredentialPubkey) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkey) GetPubkey() []byte {
|
|
if x != nil {
|
|
return x.Pubkey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkey) GetGroups() []string {
|
|
if x != nil {
|
|
return x.Groups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkey) GetAllowRelay() bool {
|
|
if x != nil {
|
|
return x.AllowRelay
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkey) GetExpiryUnix() int64 {
|
|
if x != nil {
|
|
return x.ExpiryUnix
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkey) GetAllowedProxyCidrs() []string {
|
|
if x != nil {
|
|
return x.AllowedProxyCidrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkey) GetReusable() bool {
|
|
if x != nil && x.Reusable != nil {
|
|
return *x.Reusable
|
|
}
|
|
return false
|
|
}
|
|
|
|
type TrustedCredentialPubkeyProof struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Credential *TrustedCredentialPubkey `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
|
|
CredentialHmac []byte `protobuf:"bytes,2,opt,name=credential_hmac,json=credentialHmac,proto3" json:"credential_hmac,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkeyProof) Reset() {
|
|
*x = TrustedCredentialPubkeyProof{}
|
|
mi := &file_peer_rpc_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkeyProof) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TrustedCredentialPubkeyProof) ProtoMessage() {}
|
|
|
|
func (x *TrustedCredentialPubkeyProof) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TrustedCredentialPubkeyProof.ProtoReflect.Descriptor instead.
|
|
func (*TrustedCredentialPubkeyProof) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkeyProof) GetCredential() *TrustedCredentialPubkey {
|
|
if x != nil {
|
|
return x.Credential
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TrustedCredentialPubkeyProof) GetCredentialHmac() []byte {
|
|
if x != nil {
|
|
return x.CredentialHmac
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RoutePeerInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// means next hop in route table.
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
InstId *common.UUID `protobuf:"bytes,2,opt,name=inst_id,json=instId,proto3" json:"inst_id,omitempty"`
|
|
Cost uint32 `protobuf:"varint,3,opt,name=cost,proto3" json:"cost,omitempty"`
|
|
Ipv4Addr *common.Ipv4Addr `protobuf:"bytes,4,opt,name=ipv4_addr,json=ipv4Addr,proto3,oneof" json:"ipv4_addr,omitempty"`
|
|
ProxyCidrs []string `protobuf:"bytes,5,rep,name=proxy_cidrs,json=proxyCidrs,proto3" json:"proxy_cidrs,omitempty"`
|
|
Hostname *string `protobuf:"bytes,6,opt,name=hostname,proto3,oneof" json:"hostname,omitempty"`
|
|
UdpNatType common.NatType `protobuf:"varint,7,opt,name=udp_nat_type,json=udpNatType,proto3,enum=common.NatType" json:"udp_nat_type,omitempty"`
|
|
LastUpdate *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
|
|
Version uint32 `protobuf:"varint,9,opt,name=version,proto3" json:"version,omitempty"`
|
|
EasytierVersion string `protobuf:"bytes,10,opt,name=easytier_version,json=easytierVersion,proto3" json:"easytier_version,omitempty"`
|
|
FeatureFlag *common.PeerFeatureFlag `protobuf:"bytes,11,opt,name=feature_flag,json=featureFlag,proto3" json:"feature_flag,omitempty"`
|
|
PeerRouteId uint64 `protobuf:"varint,12,opt,name=peer_route_id,json=peerRouteId,proto3" json:"peer_route_id,omitempty"`
|
|
NetworkLength uint32 `protobuf:"varint,13,opt,name=network_length,json=networkLength,proto3" json:"network_length,omitempty"`
|
|
// Deprecated: Marked as deprecated in peer_rpc.proto.
|
|
QuicPort *uint32 `protobuf:"varint,14,opt,name=quic_port,json=quicPort,proto3,oneof" json:"quic_port,omitempty"`
|
|
Ipv6Addr *common.Ipv6Inet `protobuf:"bytes,15,opt,name=ipv6_addr,json=ipv6Addr,proto3,oneof" json:"ipv6_addr,omitempty"`
|
|
Groups []*PeerGroupInfo `protobuf:"bytes,16,rep,name=groups,proto3" json:"groups,omitempty"`
|
|
TcpNatType common.NatType `protobuf:"varint,17,opt,name=tcp_nat_type,json=tcpNatType,proto3,enum=common.NatType" json:"tcp_nat_type,omitempty"`
|
|
NoiseStaticPubkey []byte `protobuf:"bytes,18,opt,name=noise_static_pubkey,json=noiseStaticPubkey,proto3" json:"noise_static_pubkey,omitempty"`
|
|
// Trusted credential public keys published by admin nodes (holding network_secret)
|
|
TrustedCredentialPubkeys []*TrustedCredentialPubkeyProof `protobuf:"bytes,19,rep,name=trusted_credential_pubkeys,json=trustedCredentialPubkeys,proto3" json:"trusted_credential_pubkeys,omitempty"`
|
|
Ipv6PublicAddrPrefix *common.Ipv6Inet `protobuf:"bytes,22,opt,name=ipv6_public_addr_prefix,json=ipv6PublicAddrPrefix,proto3,oneof" json:"ipv6_public_addr_prefix,omitempty"`
|
|
Ipv6PublicAddrLease *common.Ipv6Inet `protobuf:"bytes,24,opt,name=ipv6_public_addr_lease,json=ipv6PublicAddrLease,proto3,oneof" json:"ipv6_public_addr_lease,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RoutePeerInfo) Reset() {
|
|
*x = RoutePeerInfo{}
|
|
mi := &file_peer_rpc_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RoutePeerInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RoutePeerInfo) ProtoMessage() {}
|
|
|
|
func (x *RoutePeerInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RoutePeerInfo.ProtoReflect.Descriptor instead.
|
|
func (*RoutePeerInfo) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetInstId() *common.UUID {
|
|
if x != nil {
|
|
return x.InstId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetCost() uint32 {
|
|
if x != nil {
|
|
return x.Cost
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetIpv4Addr() *common.Ipv4Addr {
|
|
if x != nil {
|
|
return x.Ipv4Addr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetProxyCidrs() []string {
|
|
if x != nil {
|
|
return x.ProxyCidrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetHostname() string {
|
|
if x != nil && x.Hostname != nil {
|
|
return *x.Hostname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetUdpNatType() common.NatType {
|
|
if x != nil {
|
|
return x.UdpNatType
|
|
}
|
|
return common.NatType(0)
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetLastUpdate() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.LastUpdate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetEasytierVersion() string {
|
|
if x != nil {
|
|
return x.EasytierVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetFeatureFlag() *common.PeerFeatureFlag {
|
|
if x != nil {
|
|
return x.FeatureFlag
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetPeerRouteId() uint64 {
|
|
if x != nil {
|
|
return x.PeerRouteId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetNetworkLength() uint32 {
|
|
if x != nil {
|
|
return x.NetworkLength
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// Deprecated: Marked as deprecated in peer_rpc.proto.
|
|
func (x *RoutePeerInfo) GetQuicPort() uint32 {
|
|
if x != nil && x.QuicPort != nil {
|
|
return *x.QuicPort
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetIpv6Addr() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.Ipv6Addr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetGroups() []*PeerGroupInfo {
|
|
if x != nil {
|
|
return x.Groups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetTcpNatType() common.NatType {
|
|
if x != nil {
|
|
return x.TcpNatType
|
|
}
|
|
return common.NatType(0)
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetNoiseStaticPubkey() []byte {
|
|
if x != nil {
|
|
return x.NoiseStaticPubkey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetTrustedCredentialPubkeys() []*TrustedCredentialPubkeyProof {
|
|
if x != nil {
|
|
return x.TrustedCredentialPubkeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetIpv6PublicAddrPrefix() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.Ipv6PublicAddrPrefix
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoutePeerInfo) GetIpv6PublicAddrLease() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.Ipv6PublicAddrLease
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PeerIdVersion struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerIdVersion) Reset() {
|
|
*x = PeerIdVersion{}
|
|
mi := &file_peer_rpc_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerIdVersion) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerIdVersion) ProtoMessage() {}
|
|
|
|
func (x *PeerIdVersion) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PeerIdVersion.ProtoReflect.Descriptor instead.
|
|
func (*PeerIdVersion) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *PeerIdVersion) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerIdVersion) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RouteConnBitmap struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerIds []*PeerIdVersion `protobuf:"bytes,1,rep,name=peer_ids,json=peerIds,proto3" json:"peer_ids,omitempty"`
|
|
Bitmap []byte `protobuf:"bytes,2,opt,name=bitmap,proto3" json:"bitmap,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RouteConnBitmap) Reset() {
|
|
*x = RouteConnBitmap{}
|
|
mi := &file_peer_rpc_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RouteConnBitmap) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RouteConnBitmap) ProtoMessage() {}
|
|
|
|
func (x *RouteConnBitmap) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RouteConnBitmap.ProtoReflect.Descriptor instead.
|
|
func (*RouteConnBitmap) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *RouteConnBitmap) GetPeerIds() []*PeerIdVersion {
|
|
if x != nil {
|
|
return x.PeerIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RouteConnBitmap) GetBitmap() []byte {
|
|
if x != nil {
|
|
return x.Bitmap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RouteConnPeerList struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerConnInfos []*RouteConnPeerList_PeerConnInfo `protobuf:"bytes,1,rep,name=peer_conn_infos,json=peerConnInfos,proto3" json:"peer_conn_infos,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RouteConnPeerList) Reset() {
|
|
*x = RouteConnPeerList{}
|
|
mi := &file_peer_rpc_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RouteConnPeerList) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RouteConnPeerList) ProtoMessage() {}
|
|
|
|
func (x *RouteConnPeerList) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RouteConnPeerList.ProtoReflect.Descriptor instead.
|
|
func (*RouteConnPeerList) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *RouteConnPeerList) GetPeerConnInfos() []*RouteConnPeerList_PeerConnInfo {
|
|
if x != nil {
|
|
return x.PeerConnInfos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RoutePeerInfos struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Items []*RoutePeerInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RoutePeerInfos) Reset() {
|
|
*x = RoutePeerInfos{}
|
|
mi := &file_peer_rpc_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RoutePeerInfos) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RoutePeerInfos) ProtoMessage() {}
|
|
|
|
func (x *RoutePeerInfos) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RoutePeerInfos.ProtoReflect.Descriptor instead.
|
|
func (*RoutePeerInfos) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *RoutePeerInfos) GetItems() []*RoutePeerInfo {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ForeignNetworkRouteInfoKey struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
NetworkName string `protobuf:"bytes,2,opt,name=network_name,json=networkName,proto3" json:"network_name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoKey) Reset() {
|
|
*x = ForeignNetworkRouteInfoKey{}
|
|
mi := &file_peer_rpc_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoKey) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ForeignNetworkRouteInfoKey) ProtoMessage() {}
|
|
|
|
func (x *ForeignNetworkRouteInfoKey) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ForeignNetworkRouteInfoKey.ProtoReflect.Descriptor instead.
|
|
func (*ForeignNetworkRouteInfoKey) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoKey) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoKey) GetNetworkName() string {
|
|
if x != nil {
|
|
return x.NetworkName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ForeignNetworkRouteInfoEntry struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ForeignPeerIds []uint32 `protobuf:"varint,1,rep,packed,name=foreign_peer_ids,json=foreignPeerIds,proto3" json:"foreign_peer_ids,omitempty"`
|
|
LastUpdate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
|
|
Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
|
|
NetworkSecretDigest []byte `protobuf:"bytes,4,opt,name=network_secret_digest,json=networkSecretDigest,proto3" json:"network_secret_digest,omitempty"`
|
|
MyPeerIdForThisNetwork uint32 `protobuf:"varint,5,opt,name=my_peer_id_for_this_network,json=myPeerIdForThisNetwork,proto3" json:"my_peer_id_for_this_network,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoEntry) Reset() {
|
|
*x = ForeignNetworkRouteInfoEntry{}
|
|
mi := &file_peer_rpc_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoEntry) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ForeignNetworkRouteInfoEntry) ProtoMessage() {}
|
|
|
|
func (x *ForeignNetworkRouteInfoEntry) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ForeignNetworkRouteInfoEntry.ProtoReflect.Descriptor instead.
|
|
func (*ForeignNetworkRouteInfoEntry) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoEntry) GetForeignPeerIds() []uint32 {
|
|
if x != nil {
|
|
return x.ForeignPeerIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoEntry) GetLastUpdate() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.LastUpdate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoEntry) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoEntry) GetNetworkSecretDigest() []byte {
|
|
if x != nil {
|
|
return x.NetworkSecretDigest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ForeignNetworkRouteInfoEntry) GetMyPeerIdForThisNetwork() uint32 {
|
|
if x != nil {
|
|
return x.MyPeerIdForThisNetwork
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RouteForeignNetworkInfos struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Infos []*RouteForeignNetworkInfos_Info `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RouteForeignNetworkInfos) Reset() {
|
|
*x = RouteForeignNetworkInfos{}
|
|
mi := &file_peer_rpc_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RouteForeignNetworkInfos) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RouteForeignNetworkInfos) ProtoMessage() {}
|
|
|
|
func (x *RouteForeignNetworkInfos) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RouteForeignNetworkInfos.ProtoReflect.Descriptor instead.
|
|
func (*RouteForeignNetworkInfos) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *RouteForeignNetworkInfos) GetInfos() []*RouteForeignNetworkInfos_Info {
|
|
if x != nil {
|
|
return x.Infos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RouteForeignNetworkSummary struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
InfoMap map[uint32]*RouteForeignNetworkSummary_Info `protobuf:"bytes,1,rep,name=info_map,json=infoMap,proto3" json:"info_map,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RouteForeignNetworkSummary) Reset() {
|
|
*x = RouteForeignNetworkSummary{}
|
|
mi := &file_peer_rpc_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RouteForeignNetworkSummary) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RouteForeignNetworkSummary) ProtoMessage() {}
|
|
|
|
func (x *RouteForeignNetworkSummary) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RouteForeignNetworkSummary.ProtoReflect.Descriptor instead.
|
|
func (*RouteForeignNetworkSummary) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *RouteForeignNetworkSummary) GetInfoMap() map[uint32]*RouteForeignNetworkSummary_Info {
|
|
if x != nil {
|
|
return x.InfoMap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PeerGroupInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
|
|
GroupProof []byte `protobuf:"bytes,2,opt,name=group_proof,json=groupProof,proto3" json:"group_proof,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerGroupInfo) Reset() {
|
|
*x = PeerGroupInfo{}
|
|
mi := &file_peer_rpc_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerGroupInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerGroupInfo) ProtoMessage() {}
|
|
|
|
func (x *PeerGroupInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PeerGroupInfo.ProtoReflect.Descriptor instead.
|
|
func (*PeerGroupInfo) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *PeerGroupInfo) GetGroupName() string {
|
|
if x != nil {
|
|
return x.GroupName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerGroupInfo) GetGroupProof() []byte {
|
|
if x != nil {
|
|
return x.GroupProof
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SyncRouteInfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
MyPeerId uint32 `protobuf:"varint,1,opt,name=my_peer_id,json=myPeerId,proto3" json:"my_peer_id,omitempty"`
|
|
MySessionId uint64 `protobuf:"varint,2,opt,name=my_session_id,json=mySessionId,proto3" json:"my_session_id,omitempty"`
|
|
IsInitiator bool `protobuf:"varint,3,opt,name=is_initiator,json=isInitiator,proto3" json:"is_initiator,omitempty"`
|
|
PeerInfos *RoutePeerInfos `protobuf:"bytes,4,opt,name=peer_infos,json=peerInfos,proto3" json:"peer_infos,omitempty"`
|
|
// Types that are valid to be assigned to ConnInfo:
|
|
//
|
|
// *SyncRouteInfoRequest_ConnBitmap
|
|
// *SyncRouteInfoRequest_ConnPeerList
|
|
ConnInfo isSyncRouteInfoRequest_ConnInfo `protobuf_oneof:"conn_info"`
|
|
ForeignNetworkInfos *RouteForeignNetworkInfos `protobuf:"bytes,6,opt,name=foreign_network_infos,json=foreignNetworkInfos,proto3" json:"foreign_network_infos,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) Reset() {
|
|
*x = SyncRouteInfoRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SyncRouteInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *SyncRouteInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SyncRouteInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*SyncRouteInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) GetMyPeerId() uint32 {
|
|
if x != nil {
|
|
return x.MyPeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) GetMySessionId() uint64 {
|
|
if x != nil {
|
|
return x.MySessionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) GetIsInitiator() bool {
|
|
if x != nil {
|
|
return x.IsInitiator
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) GetPeerInfos() *RoutePeerInfos {
|
|
if x != nil {
|
|
return x.PeerInfos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) GetConnInfo() isSyncRouteInfoRequest_ConnInfo {
|
|
if x != nil {
|
|
return x.ConnInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) GetConnBitmap() *RouteConnBitmap {
|
|
if x != nil {
|
|
if x, ok := x.ConnInfo.(*SyncRouteInfoRequest_ConnBitmap); ok {
|
|
return x.ConnBitmap
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) GetConnPeerList() *RouteConnPeerList {
|
|
if x != nil {
|
|
if x, ok := x.ConnInfo.(*SyncRouteInfoRequest_ConnPeerList); ok {
|
|
return x.ConnPeerList
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SyncRouteInfoRequest) GetForeignNetworkInfos() *RouteForeignNetworkInfos {
|
|
if x != nil {
|
|
return x.ForeignNetworkInfos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isSyncRouteInfoRequest_ConnInfo interface {
|
|
isSyncRouteInfoRequest_ConnInfo()
|
|
}
|
|
|
|
type SyncRouteInfoRequest_ConnBitmap struct {
|
|
ConnBitmap *RouteConnBitmap `protobuf:"bytes,5,opt,name=conn_bitmap,json=connBitmap,proto3,oneof"`
|
|
}
|
|
|
|
type SyncRouteInfoRequest_ConnPeerList struct {
|
|
ConnPeerList *RouteConnPeerList `protobuf:"bytes,7,opt,name=conn_peer_list,json=connPeerList,proto3,oneof"`
|
|
}
|
|
|
|
func (*SyncRouteInfoRequest_ConnBitmap) isSyncRouteInfoRequest_ConnInfo() {}
|
|
|
|
func (*SyncRouteInfoRequest_ConnPeerList) isSyncRouteInfoRequest_ConnInfo() {}
|
|
|
|
type SyncRouteInfoResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
IsInitiator bool `protobuf:"varint,1,opt,name=is_initiator,json=isInitiator,proto3" json:"is_initiator,omitempty"`
|
|
SessionId uint64 `protobuf:"varint,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
Error *SyncRouteInfoError `protobuf:"varint,3,opt,name=error,proto3,enum=peer_rpc.SyncRouteInfoError,oneof" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SyncRouteInfoResponse) Reset() {
|
|
*x = SyncRouteInfoResponse{}
|
|
mi := &file_peer_rpc_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SyncRouteInfoResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SyncRouteInfoResponse) ProtoMessage() {}
|
|
|
|
func (x *SyncRouteInfoResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SyncRouteInfoResponse.ProtoReflect.Descriptor instead.
|
|
func (*SyncRouteInfoResponse) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *SyncRouteInfoResponse) GetIsInitiator() bool {
|
|
if x != nil {
|
|
return x.IsInitiator
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SyncRouteInfoResponse) GetSessionId() uint64 {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SyncRouteInfoResponse) GetError() SyncRouteInfoError {
|
|
if x != nil && x.Error != nil {
|
|
return *x.Error
|
|
}
|
|
return SyncRouteInfoError_DuplicatePeerId
|
|
}
|
|
|
|
type AcquireIpv6PublicAddrLeaseRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
InstId *common.UUID `protobuf:"bytes,2,opt,name=inst_id,json=instId,proto3" json:"inst_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AcquireIpv6PublicAddrLeaseRequest) Reset() {
|
|
*x = AcquireIpv6PublicAddrLeaseRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AcquireIpv6PublicAddrLeaseRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AcquireIpv6PublicAddrLeaseRequest) ProtoMessage() {}
|
|
|
|
func (x *AcquireIpv6PublicAddrLeaseRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AcquireIpv6PublicAddrLeaseRequest.ProtoReflect.Descriptor instead.
|
|
func (*AcquireIpv6PublicAddrLeaseRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *AcquireIpv6PublicAddrLeaseRequest) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AcquireIpv6PublicAddrLeaseRequest) GetInstId() *common.UUID {
|
|
if x != nil {
|
|
return x.InstId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RenewIpv6PublicAddrLeaseRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
InstId *common.UUID `protobuf:"bytes,2,opt,name=inst_id,json=instId,proto3" json:"inst_id,omitempty"`
|
|
LeasedAddr *common.Ipv6Inet `protobuf:"bytes,3,opt,name=leased_addr,json=leasedAddr,proto3" json:"leased_addr,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RenewIpv6PublicAddrLeaseRequest) Reset() {
|
|
*x = RenewIpv6PublicAddrLeaseRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RenewIpv6PublicAddrLeaseRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RenewIpv6PublicAddrLeaseRequest) ProtoMessage() {}
|
|
|
|
func (x *RenewIpv6PublicAddrLeaseRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RenewIpv6PublicAddrLeaseRequest.ProtoReflect.Descriptor instead.
|
|
func (*RenewIpv6PublicAddrLeaseRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *RenewIpv6PublicAddrLeaseRequest) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RenewIpv6PublicAddrLeaseRequest) GetInstId() *common.UUID {
|
|
if x != nil {
|
|
return x.InstId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RenewIpv6PublicAddrLeaseRequest) GetLeasedAddr() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.LeasedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReleaseIpv6PublicAddrLeaseRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
InstId *common.UUID `protobuf:"bytes,2,opt,name=inst_id,json=instId,proto3" json:"inst_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReleaseIpv6PublicAddrLeaseRequest) Reset() {
|
|
*x = ReleaseIpv6PublicAddrLeaseRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReleaseIpv6PublicAddrLeaseRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReleaseIpv6PublicAddrLeaseRequest) ProtoMessage() {}
|
|
|
|
func (x *ReleaseIpv6PublicAddrLeaseRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReleaseIpv6PublicAddrLeaseRequest.ProtoReflect.Descriptor instead.
|
|
func (*ReleaseIpv6PublicAddrLeaseRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *ReleaseIpv6PublicAddrLeaseRequest) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ReleaseIpv6PublicAddrLeaseRequest) GetInstId() *common.UUID {
|
|
if x != nil {
|
|
return x.InstId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetIpv6PublicAddrLeaseRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
InstId *common.UUID `protobuf:"bytes,2,opt,name=inst_id,json=instId,proto3" json:"inst_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetIpv6PublicAddrLeaseRequest) Reset() {
|
|
*x = GetIpv6PublicAddrLeaseRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetIpv6PublicAddrLeaseRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetIpv6PublicAddrLeaseRequest) ProtoMessage() {}
|
|
|
|
func (x *GetIpv6PublicAddrLeaseRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetIpv6PublicAddrLeaseRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetIpv6PublicAddrLeaseRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *GetIpv6PublicAddrLeaseRequest) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetIpv6PublicAddrLeaseRequest) GetInstId() *common.UUID {
|
|
if x != nil {
|
|
return x.InstId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Ipv6PublicAddrLeaseReply struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ProviderPeerId uint32 `protobuf:"varint,1,opt,name=provider_peer_id,json=providerPeerId,proto3" json:"provider_peer_id,omitempty"`
|
|
ProviderInstId *common.UUID `protobuf:"bytes,2,opt,name=provider_inst_id,json=providerInstId,proto3" json:"provider_inst_id,omitempty"`
|
|
ProviderPrefix *common.Ipv6Inet `protobuf:"bytes,3,opt,name=provider_prefix,json=providerPrefix,proto3" json:"provider_prefix,omitempty"`
|
|
LeasedAddr *common.Ipv6Inet `protobuf:"bytes,4,opt,name=leased_addr,json=leasedAddr,proto3" json:"leased_addr,omitempty"`
|
|
ValidUntil *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"`
|
|
Reused bool `protobuf:"varint,6,opt,name=reused,proto3" json:"reused,omitempty"`
|
|
ErrorMsg *string `protobuf:"bytes,7,opt,name=error_msg,json=errorMsg,proto3,oneof" json:"error_msg,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) Reset() {
|
|
*x = Ipv6PublicAddrLeaseReply{}
|
|
mi := &file_peer_rpc_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Ipv6PublicAddrLeaseReply) ProtoMessage() {}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Ipv6PublicAddrLeaseReply.ProtoReflect.Descriptor instead.
|
|
func (*Ipv6PublicAddrLeaseReply) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) GetProviderPeerId() uint32 {
|
|
if x != nil {
|
|
return x.ProviderPeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) GetProviderInstId() *common.UUID {
|
|
if x != nil {
|
|
return x.ProviderInstId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) GetProviderPrefix() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.ProviderPrefix
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) GetLeasedAddr() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.LeasedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) GetValidUntil() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ValidUntil
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) GetReused() bool {
|
|
if x != nil {
|
|
return x.Reused
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Ipv6PublicAddrLeaseReply) GetErrorMsg() string {
|
|
if x != nil && x.ErrorMsg != nil {
|
|
return *x.ErrorMsg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetIpListRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetIpListRequest) Reset() {
|
|
*x = GetIpListRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetIpListRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetIpListRequest) ProtoMessage() {}
|
|
|
|
func (x *GetIpListRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetIpListRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetIpListRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
type GetIpListResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PublicIpv4 *common.Ipv4Addr `protobuf:"bytes,1,opt,name=public_ipv4,json=publicIpv4,proto3" json:"public_ipv4,omitempty"`
|
|
InterfaceIpv4S []*common.Ipv4Addr `protobuf:"bytes,2,rep,name=interface_ipv4s,json=interfaceIpv4s,proto3" json:"interface_ipv4s,omitempty"`
|
|
PublicIpv6 *common.Ipv6Addr `protobuf:"bytes,3,opt,name=public_ipv6,json=publicIpv6,proto3" json:"public_ipv6,omitempty"`
|
|
InterfaceIpv6S []*common.Ipv6Addr `protobuf:"bytes,4,rep,name=interface_ipv6s,json=interfaceIpv6s,proto3" json:"interface_ipv6s,omitempty"`
|
|
Listeners []*common.Url `protobuf:"bytes,5,rep,name=listeners,proto3" json:"listeners,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetIpListResponse) Reset() {
|
|
*x = GetIpListResponse{}
|
|
mi := &file_peer_rpc_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetIpListResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetIpListResponse) ProtoMessage() {}
|
|
|
|
func (x *GetIpListResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetIpListResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetIpListResponse) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *GetIpListResponse) GetPublicIpv4() *common.Ipv4Addr {
|
|
if x != nil {
|
|
return x.PublicIpv4
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetIpListResponse) GetInterfaceIpv4S() []*common.Ipv4Addr {
|
|
if x != nil {
|
|
return x.InterfaceIpv4S
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetIpListResponse) GetPublicIpv6() *common.Ipv6Addr {
|
|
if x != nil {
|
|
return x.PublicIpv6
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetIpListResponse) GetInterfaceIpv6S() []*common.Ipv6Addr {
|
|
if x != nil {
|
|
return x.InterfaceIpv6S
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetIpListResponse) GetListeners() []*common.Url {
|
|
if x != nil {
|
|
return x.Listeners
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SendUdpHolePunchPacketRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ConnectorAddr *common.SocketAddr `protobuf:"bytes,1,opt,name=connector_addr,json=connectorAddr,proto3" json:"connector_addr,omitempty"`
|
|
ListenerPort uint32 `protobuf:"varint,2,opt,name=listener_port,json=listenerPort,proto3" json:"listener_port,omitempty"`
|
|
PreferredSrcIpv6 *common.Ipv6Addr `protobuf:"bytes,3,opt,name=preferred_src_ipv6,json=preferredSrcIpv6,proto3" json:"preferred_src_ipv6,omitempty"`
|
|
ConnectorAddrs []*common.SocketAddr `protobuf:"bytes,4,rep,name=connector_addrs,json=connectorAddrs,proto3" json:"connector_addrs,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendUdpHolePunchPacketRequest) Reset() {
|
|
*x = SendUdpHolePunchPacketRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendUdpHolePunchPacketRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendUdpHolePunchPacketRequest) ProtoMessage() {}
|
|
|
|
func (x *SendUdpHolePunchPacketRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SendUdpHolePunchPacketRequest.ProtoReflect.Descriptor instead.
|
|
func (*SendUdpHolePunchPacketRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *SendUdpHolePunchPacketRequest) GetConnectorAddr() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.ConnectorAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendUdpHolePunchPacketRequest) GetListenerPort() uint32 {
|
|
if x != nil {
|
|
return x.ListenerPort
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendUdpHolePunchPacketRequest) GetPreferredSrcIpv6() *common.Ipv6Addr {
|
|
if x != nil {
|
|
return x.PreferredSrcIpv6
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendUdpHolePunchPacketRequest) GetConnectorAddrs() []*common.SocketAddr {
|
|
if x != nil {
|
|
return x.ConnectorAddrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SelectPunchListenerRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ForceNew bool `protobuf:"varint,1,opt,name=force_new,json=forceNew,proto3" json:"force_new,omitempty"`
|
|
PreferPortMapping bool `protobuf:"varint,2,opt,name=prefer_port_mapping,json=preferPortMapping,proto3" json:"prefer_port_mapping,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SelectPunchListenerRequest) Reset() {
|
|
*x = SelectPunchListenerRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SelectPunchListenerRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SelectPunchListenerRequest) ProtoMessage() {}
|
|
|
|
func (x *SelectPunchListenerRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SelectPunchListenerRequest.ProtoReflect.Descriptor instead.
|
|
func (*SelectPunchListenerRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *SelectPunchListenerRequest) GetForceNew() bool {
|
|
if x != nil {
|
|
return x.ForceNew
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SelectPunchListenerRequest) GetPreferPortMapping() bool {
|
|
if x != nil {
|
|
return x.PreferPortMapping
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SelectPunchListenerResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ListenerMappedAddr *common.SocketAddr `protobuf:"bytes,1,opt,name=listener_mapped_addr,json=listenerMappedAddr,proto3" json:"listener_mapped_addr,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SelectPunchListenerResponse) Reset() {
|
|
*x = SelectPunchListenerResponse{}
|
|
mi := &file_peer_rpc_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SelectPunchListenerResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SelectPunchListenerResponse) ProtoMessage() {}
|
|
|
|
func (x *SelectPunchListenerResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SelectPunchListenerResponse.ProtoReflect.Descriptor instead.
|
|
func (*SelectPunchListenerResponse) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *SelectPunchListenerResponse) GetListenerMappedAddr() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.ListenerMappedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SendPunchPacketConeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ListenerMappedAddr *common.SocketAddr `protobuf:"bytes,1,opt,name=listener_mapped_addr,json=listenerMappedAddr,proto3" json:"listener_mapped_addr,omitempty"`
|
|
DestAddr *common.SocketAddr `protobuf:"bytes,2,opt,name=dest_addr,json=destAddr,proto3" json:"dest_addr,omitempty"`
|
|
TransactionId uint32 `protobuf:"varint,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
// send this many packets in a batch
|
|
PacketCountPerBatch uint32 `protobuf:"varint,4,opt,name=packet_count_per_batch,json=packetCountPerBatch,proto3" json:"packet_count_per_batch,omitempty"`
|
|
// send total this batch count, total packet count = packet_batch_size * packet_batch_count
|
|
PacketBatchCount uint32 `protobuf:"varint,5,opt,name=packet_batch_count,json=packetBatchCount,proto3" json:"packet_batch_count,omitempty"`
|
|
// interval between each batch
|
|
PacketIntervalMs uint32 `protobuf:"varint,6,opt,name=packet_interval_ms,json=packetIntervalMs,proto3" json:"packet_interval_ms,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendPunchPacketConeRequest) Reset() {
|
|
*x = SendPunchPacketConeRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendPunchPacketConeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendPunchPacketConeRequest) ProtoMessage() {}
|
|
|
|
func (x *SendPunchPacketConeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[24]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SendPunchPacketConeRequest.ProtoReflect.Descriptor instead.
|
|
func (*SendPunchPacketConeRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *SendPunchPacketConeRequest) GetListenerMappedAddr() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.ListenerMappedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendPunchPacketConeRequest) GetDestAddr() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.DestAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendPunchPacketConeRequest) GetTransactionId() uint32 {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketConeRequest) GetPacketCountPerBatch() uint32 {
|
|
if x != nil {
|
|
return x.PacketCountPerBatch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketConeRequest) GetPacketBatchCount() uint32 {
|
|
if x != nil {
|
|
return x.PacketBatchCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketConeRequest) GetPacketIntervalMs() uint32 {
|
|
if x != nil {
|
|
return x.PacketIntervalMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SendPunchPacketHardSymRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ListenerMappedAddr *common.SocketAddr `protobuf:"bytes,1,opt,name=listener_mapped_addr,json=listenerMappedAddr,proto3" json:"listener_mapped_addr,omitempty"`
|
|
PublicIps []*common.Ipv4Addr `protobuf:"bytes,2,rep,name=public_ips,json=publicIps,proto3" json:"public_ips,omitempty"`
|
|
TransactionId uint32 `protobuf:"varint,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
PortIndex uint32 `protobuf:"varint,4,opt,name=port_index,json=portIndex,proto3" json:"port_index,omitempty"`
|
|
Round uint32 `protobuf:"varint,5,opt,name=round,proto3" json:"round,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymRequest) Reset() {
|
|
*x = SendPunchPacketHardSymRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendPunchPacketHardSymRequest) ProtoMessage() {}
|
|
|
|
func (x *SendPunchPacketHardSymRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[25]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SendPunchPacketHardSymRequest.ProtoReflect.Descriptor instead.
|
|
func (*SendPunchPacketHardSymRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymRequest) GetListenerMappedAddr() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.ListenerMappedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymRequest) GetPublicIps() []*common.Ipv4Addr {
|
|
if x != nil {
|
|
return x.PublicIps
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymRequest) GetTransactionId() uint32 {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymRequest) GetPortIndex() uint32 {
|
|
if x != nil {
|
|
return x.PortIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymRequest) GetRound() uint32 {
|
|
if x != nil {
|
|
return x.Round
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SendPunchPacketHardSymResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NextPortIndex uint32 `protobuf:"varint,1,opt,name=next_port_index,json=nextPortIndex,proto3" json:"next_port_index,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymResponse) Reset() {
|
|
*x = SendPunchPacketHardSymResponse{}
|
|
mi := &file_peer_rpc_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendPunchPacketHardSymResponse) ProtoMessage() {}
|
|
|
|
func (x *SendPunchPacketHardSymResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[26]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SendPunchPacketHardSymResponse.ProtoReflect.Descriptor instead.
|
|
func (*SendPunchPacketHardSymResponse) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *SendPunchPacketHardSymResponse) GetNextPortIndex() uint32 {
|
|
if x != nil {
|
|
return x.NextPortIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SendPunchPacketEasySymRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ListenerMappedAddr *common.SocketAddr `protobuf:"bytes,1,opt,name=listener_mapped_addr,json=listenerMappedAddr,proto3" json:"listener_mapped_addr,omitempty"`
|
|
PublicIps []*common.Ipv4Addr `protobuf:"bytes,2,rep,name=public_ips,json=publicIps,proto3" json:"public_ips,omitempty"`
|
|
TransactionId uint32 `protobuf:"varint,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
BasePortNum uint32 `protobuf:"varint,4,opt,name=base_port_num,json=basePortNum,proto3" json:"base_port_num,omitempty"`
|
|
MaxPortNum uint32 `protobuf:"varint,5,opt,name=max_port_num,json=maxPortNum,proto3" json:"max_port_num,omitempty"`
|
|
IsIncremental bool `protobuf:"varint,6,opt,name=is_incremental,json=isIncremental,proto3" json:"is_incremental,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendPunchPacketEasySymRequest) Reset() {
|
|
*x = SendPunchPacketEasySymRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendPunchPacketEasySymRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendPunchPacketEasySymRequest) ProtoMessage() {}
|
|
|
|
func (x *SendPunchPacketEasySymRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[27]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SendPunchPacketEasySymRequest.ProtoReflect.Descriptor instead.
|
|
func (*SendPunchPacketEasySymRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *SendPunchPacketEasySymRequest) GetListenerMappedAddr() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.ListenerMappedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendPunchPacketEasySymRequest) GetPublicIps() []*common.Ipv4Addr {
|
|
if x != nil {
|
|
return x.PublicIps
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendPunchPacketEasySymRequest) GetTransactionId() uint32 {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketEasySymRequest) GetBasePortNum() uint32 {
|
|
if x != nil {
|
|
return x.BasePortNum
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketEasySymRequest) GetMaxPortNum() uint32 {
|
|
if x != nil {
|
|
return x.MaxPortNum
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketEasySymRequest) GetIsIncremental() bool {
|
|
if x != nil {
|
|
return x.IsIncremental
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SendPunchPacketBothEasySymRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UdpSocketCount uint32 `protobuf:"varint,1,opt,name=udp_socket_count,json=udpSocketCount,proto3" json:"udp_socket_count,omitempty"`
|
|
PublicIp *common.Ipv4Addr `protobuf:"bytes,2,opt,name=public_ip,json=publicIp,proto3" json:"public_ip,omitempty"`
|
|
TransactionId uint32 `protobuf:"varint,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
DstPortNum uint32 `protobuf:"varint,4,opt,name=dst_port_num,json=dstPortNum,proto3" json:"dst_port_num,omitempty"`
|
|
WaitTimeMs uint32 `protobuf:"varint,5,opt,name=wait_time_ms,json=waitTimeMs,proto3" json:"wait_time_ms,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymRequest) Reset() {
|
|
*x = SendPunchPacketBothEasySymRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendPunchPacketBothEasySymRequest) ProtoMessage() {}
|
|
|
|
func (x *SendPunchPacketBothEasySymRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[28]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SendPunchPacketBothEasySymRequest.ProtoReflect.Descriptor instead.
|
|
func (*SendPunchPacketBothEasySymRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymRequest) GetUdpSocketCount() uint32 {
|
|
if x != nil {
|
|
return x.UdpSocketCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymRequest) GetPublicIp() *common.Ipv4Addr {
|
|
if x != nil {
|
|
return x.PublicIp
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymRequest) GetTransactionId() uint32 {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymRequest) GetDstPortNum() uint32 {
|
|
if x != nil {
|
|
return x.DstPortNum
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymRequest) GetWaitTimeMs() uint32 {
|
|
if x != nil {
|
|
return x.WaitTimeMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SendPunchPacketBothEasySymResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// is doing punch with other peer
|
|
IsBusy bool `protobuf:"varint,1,opt,name=is_busy,json=isBusy,proto3" json:"is_busy,omitempty"`
|
|
BaseMappedAddr *common.SocketAddr `protobuf:"bytes,2,opt,name=base_mapped_addr,json=baseMappedAddr,proto3" json:"base_mapped_addr,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymResponse) Reset() {
|
|
*x = SendPunchPacketBothEasySymResponse{}
|
|
mi := &file_peer_rpc_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendPunchPacketBothEasySymResponse) ProtoMessage() {}
|
|
|
|
func (x *SendPunchPacketBothEasySymResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[29]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SendPunchPacketBothEasySymResponse.ProtoReflect.Descriptor instead.
|
|
func (*SendPunchPacketBothEasySymResponse) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymResponse) GetIsBusy() bool {
|
|
if x != nil {
|
|
return x.IsBusy
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SendPunchPacketBothEasySymResponse) GetBaseMappedAddr() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.BaseMappedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TcpHolePunchRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ConnectorMappedAddr *common.SocketAddr `protobuf:"bytes,1,opt,name=connector_mapped_addr,json=connectorMappedAddr,proto3" json:"connector_mapped_addr,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TcpHolePunchRequest) Reset() {
|
|
*x = TcpHolePunchRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TcpHolePunchRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TcpHolePunchRequest) ProtoMessage() {}
|
|
|
|
func (x *TcpHolePunchRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[30]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TcpHolePunchRequest.ProtoReflect.Descriptor instead.
|
|
func (*TcpHolePunchRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
func (x *TcpHolePunchRequest) GetConnectorMappedAddr() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.ConnectorMappedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TcpHolePunchResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ListenerMappedAddr *common.SocketAddr `protobuf:"bytes,1,opt,name=listener_mapped_addr,json=listenerMappedAddr,proto3" json:"listener_mapped_addr,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TcpHolePunchResponse) Reset() {
|
|
*x = TcpHolePunchResponse{}
|
|
mi := &file_peer_rpc_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TcpHolePunchResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TcpHolePunchResponse) ProtoMessage() {}
|
|
|
|
func (x *TcpHolePunchResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[31]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TcpHolePunchResponse.ProtoReflect.Descriptor instead.
|
|
func (*TcpHolePunchResponse) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *TcpHolePunchResponse) GetListenerMappedAddr() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.ListenerMappedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DirectConnectedPeerInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
LatencyMs int32 `protobuf:"varint,1,opt,name=latency_ms,json=latencyMs,proto3" json:"latency_ms,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DirectConnectedPeerInfo) Reset() {
|
|
*x = DirectConnectedPeerInfo{}
|
|
mi := &file_peer_rpc_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DirectConnectedPeerInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DirectConnectedPeerInfo) ProtoMessage() {}
|
|
|
|
func (x *DirectConnectedPeerInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[32]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DirectConnectedPeerInfo.ProtoReflect.Descriptor instead.
|
|
func (*DirectConnectedPeerInfo) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{32}
|
|
}
|
|
|
|
func (x *DirectConnectedPeerInfo) GetLatencyMs() int32 {
|
|
if x != nil {
|
|
return x.LatencyMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PeerInfoForGlobalMap struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
DirectPeers map[uint32]*DirectConnectedPeerInfo `protobuf:"bytes,1,rep,name=direct_peers,json=directPeers,proto3" json:"direct_peers,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerInfoForGlobalMap) Reset() {
|
|
*x = PeerInfoForGlobalMap{}
|
|
mi := &file_peer_rpc_proto_msgTypes[33]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerInfoForGlobalMap) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerInfoForGlobalMap) ProtoMessage() {}
|
|
|
|
func (x *PeerInfoForGlobalMap) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[33]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PeerInfoForGlobalMap.ProtoReflect.Descriptor instead.
|
|
func (*PeerInfoForGlobalMap) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{33}
|
|
}
|
|
|
|
func (x *PeerInfoForGlobalMap) GetDirectPeers() map[uint32]*DirectConnectedPeerInfo {
|
|
if x != nil {
|
|
return x.DirectPeers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReportPeersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
MyPeerId uint32 `protobuf:"varint,1,opt,name=my_peer_id,json=myPeerId,proto3" json:"my_peer_id,omitempty"`
|
|
PeerInfos *PeerInfoForGlobalMap `protobuf:"bytes,2,opt,name=peer_infos,json=peerInfos,proto3" json:"peer_infos,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReportPeersRequest) Reset() {
|
|
*x = ReportPeersRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[34]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReportPeersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReportPeersRequest) ProtoMessage() {}
|
|
|
|
func (x *ReportPeersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[34]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReportPeersRequest.ProtoReflect.Descriptor instead.
|
|
func (*ReportPeersRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{34}
|
|
}
|
|
|
|
func (x *ReportPeersRequest) GetMyPeerId() uint32 {
|
|
if x != nil {
|
|
return x.MyPeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ReportPeersRequest) GetPeerInfos() *PeerInfoForGlobalMap {
|
|
if x != nil {
|
|
return x.PeerInfos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReportPeersResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ReportPeersResponse) Reset() {
|
|
*x = ReportPeersResponse{}
|
|
mi := &file_peer_rpc_proto_msgTypes[35]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ReportPeersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ReportPeersResponse) ProtoMessage() {}
|
|
|
|
func (x *ReportPeersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[35]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ReportPeersResponse.ProtoReflect.Descriptor instead.
|
|
func (*ReportPeersResponse) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{35}
|
|
}
|
|
|
|
type GlobalPeerMap struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Map map[uint32]*PeerInfoForGlobalMap `protobuf:"bytes,1,rep,name=map,proto3" json:"map,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GlobalPeerMap) Reset() {
|
|
*x = GlobalPeerMap{}
|
|
mi := &file_peer_rpc_proto_msgTypes[36]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GlobalPeerMap) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GlobalPeerMap) ProtoMessage() {}
|
|
|
|
func (x *GlobalPeerMap) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[36]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GlobalPeerMap.ProtoReflect.Descriptor instead.
|
|
func (*GlobalPeerMap) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{36}
|
|
}
|
|
|
|
func (x *GlobalPeerMap) GetMap() map[uint32]*PeerInfoForGlobalMap {
|
|
if x != nil {
|
|
return x.Map
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetGlobalPeerMapRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Digest uint64 `protobuf:"varint,1,opt,name=digest,proto3" json:"digest,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetGlobalPeerMapRequest) Reset() {
|
|
*x = GetGlobalPeerMapRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[37]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetGlobalPeerMapRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetGlobalPeerMapRequest) ProtoMessage() {}
|
|
|
|
func (x *GetGlobalPeerMapRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[37]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetGlobalPeerMapRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetGlobalPeerMapRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{37}
|
|
}
|
|
|
|
func (x *GetGlobalPeerMapRequest) GetDigest() uint64 {
|
|
if x != nil {
|
|
return x.Digest
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetGlobalPeerMapResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
GlobalPeerMap map[uint32]*PeerInfoForGlobalMap `protobuf:"bytes,1,rep,name=global_peer_map,json=globalPeerMap,proto3" json:"global_peer_map,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
Digest *uint64 `protobuf:"varint,2,opt,name=digest,proto3,oneof" json:"digest,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetGlobalPeerMapResponse) Reset() {
|
|
*x = GetGlobalPeerMapResponse{}
|
|
mi := &file_peer_rpc_proto_msgTypes[38]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetGlobalPeerMapResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetGlobalPeerMapResponse) ProtoMessage() {}
|
|
|
|
func (x *GetGlobalPeerMapResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[38]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetGlobalPeerMapResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetGlobalPeerMapResponse) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{38}
|
|
}
|
|
|
|
func (x *GetGlobalPeerMapResponse) GetGlobalPeerMap() map[uint32]*PeerInfoForGlobalMap {
|
|
if x != nil {
|
|
return x.GlobalPeerMap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetGlobalPeerMapResponse) GetDigest() uint64 {
|
|
if x != nil && x.Digest != nil {
|
|
return *x.Digest
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HandshakeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Magic uint32 `protobuf:"varint,1,opt,name=magic,proto3" json:"magic,omitempty"`
|
|
MyPeerId uint32 `protobuf:"varint,2,opt,name=my_peer_id,json=myPeerId,proto3" json:"my_peer_id,omitempty"`
|
|
Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
|
|
Features []string `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"`
|
|
NetworkName string `protobuf:"bytes,5,opt,name=network_name,json=networkName,proto3" json:"network_name,omitempty"`
|
|
NetworkSecretDigest []byte `protobuf:"bytes,6,opt,name=network_secret_digest,json=networkSecretDigest,proto3" json:"network_secret_digest,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HandshakeRequest) Reset() {
|
|
*x = HandshakeRequest{}
|
|
mi := &file_peer_rpc_proto_msgTypes[39]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HandshakeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HandshakeRequest) ProtoMessage() {}
|
|
|
|
func (x *HandshakeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[39]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use HandshakeRequest.ProtoReflect.Descriptor instead.
|
|
func (*HandshakeRequest) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{39}
|
|
}
|
|
|
|
func (x *HandshakeRequest) GetMagic() uint32 {
|
|
if x != nil {
|
|
return x.Magic
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HandshakeRequest) GetMyPeerId() uint32 {
|
|
if x != nil {
|
|
return x.MyPeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HandshakeRequest) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HandshakeRequest) GetFeatures() []string {
|
|
if x != nil {
|
|
return x.Features
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *HandshakeRequest) GetNetworkName() string {
|
|
if x != nil {
|
|
return x.NetworkName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HandshakeRequest) GetNetworkSecretDigest() []byte {
|
|
if x != nil {
|
|
return x.NetworkSecretDigest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type KcpConnData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Src *common.SocketAddr `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
|
|
Dst *common.SocketAddr `protobuf:"bytes,4,opt,name=dst,proto3" json:"dst,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *KcpConnData) Reset() {
|
|
*x = KcpConnData{}
|
|
mi := &file_peer_rpc_proto_msgTypes[40]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *KcpConnData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*KcpConnData) ProtoMessage() {}
|
|
|
|
func (x *KcpConnData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[40]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use KcpConnData.ProtoReflect.Descriptor instead.
|
|
func (*KcpConnData) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{40}
|
|
}
|
|
|
|
func (x *KcpConnData) GetSrc() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.Src
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *KcpConnData) GetDst() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.Dst
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PeerConnNoiseMsg1Pb struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
ANetworkName string `protobuf:"bytes,2,opt,name=a_network_name,json=aNetworkName,proto3" json:"a_network_name,omitempty"`
|
|
ASessionGeneration *uint32 `protobuf:"varint,3,opt,name=a_session_generation,json=aSessionGeneration,proto3,oneof" json:"a_session_generation,omitempty"`
|
|
AConnId *common.UUID `protobuf:"bytes,4,opt,name=a_conn_id,json=aConnId,proto3" json:"a_conn_id,omitempty"`
|
|
ClientEncryptionAlgorithm string `protobuf:"bytes,5,opt,name=client_encryption_algorithm,json=clientEncryptionAlgorithm,proto3" json:"client_encryption_algorithm,omitempty"`
|
|
Features []string `protobuf:"bytes,6,rep,name=features,proto3" json:"features,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg1Pb) Reset() {
|
|
*x = PeerConnNoiseMsg1Pb{}
|
|
mi := &file_peer_rpc_proto_msgTypes[41]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg1Pb) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerConnNoiseMsg1Pb) ProtoMessage() {}
|
|
|
|
func (x *PeerConnNoiseMsg1Pb) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[41]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PeerConnNoiseMsg1Pb.ProtoReflect.Descriptor instead.
|
|
func (*PeerConnNoiseMsg1Pb) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{41}
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg1Pb) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg1Pb) GetANetworkName() string {
|
|
if x != nil {
|
|
return x.ANetworkName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg1Pb) GetASessionGeneration() uint32 {
|
|
if x != nil && x.ASessionGeneration != nil {
|
|
return *x.ASessionGeneration
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg1Pb) GetAConnId() *common.UUID {
|
|
if x != nil {
|
|
return x.AConnId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg1Pb) GetClientEncryptionAlgorithm() string {
|
|
if x != nil {
|
|
return x.ClientEncryptionAlgorithm
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg1Pb) GetFeatures() []string {
|
|
if x != nil {
|
|
return x.Features
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PeerConnNoiseMsg2Pb struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BNetworkName string `protobuf:"bytes,1,opt,name=b_network_name,json=bNetworkName,proto3" json:"b_network_name,omitempty"`
|
|
RoleHint uint32 `protobuf:"varint,2,opt,name=role_hint,json=roleHint,proto3" json:"role_hint,omitempty"`
|
|
Action PeerConnSessionActionPb `protobuf:"varint,3,opt,name=action,proto3,enum=peer_rpc.PeerConnSessionActionPb" json:"action,omitempty"`
|
|
BSessionGeneration uint32 `protobuf:"varint,4,opt,name=b_session_generation,json=bSessionGeneration,proto3" json:"b_session_generation,omitempty"`
|
|
RootKey_32 []byte `protobuf:"bytes,5,opt,name=root_key_32,json=rootKey32,proto3,oneof" json:"root_key_32,omitempty"`
|
|
InitialEpoch uint32 `protobuf:"varint,6,opt,name=initial_epoch,json=initialEpoch,proto3" json:"initial_epoch,omitempty"`
|
|
BConnId *common.UUID `protobuf:"bytes,7,opt,name=b_conn_id,json=bConnId,proto3" json:"b_conn_id,omitempty"`
|
|
AConnIdEcho *common.UUID `protobuf:"bytes,8,opt,name=a_conn_id_echo,json=aConnIdEcho,proto3" json:"a_conn_id_echo,omitempty"`
|
|
SecretProof_32 []byte `protobuf:"bytes,9,opt,name=secret_proof_32,json=secretProof32,proto3,oneof" json:"secret_proof_32,omitempty"`
|
|
ServerEncryptionAlgorithm string `protobuf:"bytes,10,opt,name=server_encryption_algorithm,json=serverEncryptionAlgorithm,proto3" json:"server_encryption_algorithm,omitempty"`
|
|
Features []string `protobuf:"bytes,11,rep,name=features,proto3" json:"features,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) Reset() {
|
|
*x = PeerConnNoiseMsg2Pb{}
|
|
mi := &file_peer_rpc_proto_msgTypes[42]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerConnNoiseMsg2Pb) ProtoMessage() {}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[42]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PeerConnNoiseMsg2Pb.ProtoReflect.Descriptor instead.
|
|
func (*PeerConnNoiseMsg2Pb) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{42}
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetBNetworkName() string {
|
|
if x != nil {
|
|
return x.BNetworkName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetRoleHint() uint32 {
|
|
if x != nil {
|
|
return x.RoleHint
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetAction() PeerConnSessionActionPb {
|
|
if x != nil {
|
|
return x.Action
|
|
}
|
|
return PeerConnSessionActionPb_Join
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetBSessionGeneration() uint32 {
|
|
if x != nil {
|
|
return x.BSessionGeneration
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetRootKey_32() []byte {
|
|
if x != nil {
|
|
return x.RootKey_32
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetInitialEpoch() uint32 {
|
|
if x != nil {
|
|
return x.InitialEpoch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetBConnId() *common.UUID {
|
|
if x != nil {
|
|
return x.BConnId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetAConnIdEcho() *common.UUID {
|
|
if x != nil {
|
|
return x.AConnIdEcho
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetSecretProof_32() []byte {
|
|
if x != nil {
|
|
return x.SecretProof_32
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetServerEncryptionAlgorithm() string {
|
|
if x != nil {
|
|
return x.ServerEncryptionAlgorithm
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg2Pb) GetFeatures() []string {
|
|
if x != nil {
|
|
return x.Features
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RelayNoiseMsg1Pb struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
ASessionGeneration *uint32 `protobuf:"varint,3,opt,name=a_session_generation,json=aSessionGeneration,proto3,oneof" json:"a_session_generation,omitempty"`
|
|
AConnId *common.UUID `protobuf:"bytes,4,opt,name=a_conn_id,json=aConnId,proto3" json:"a_conn_id,omitempty"`
|
|
ClientEncryptionAlgorithm string `protobuf:"bytes,5,opt,name=client_encryption_algorithm,json=clientEncryptionAlgorithm,proto3" json:"client_encryption_algorithm,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RelayNoiseMsg1Pb) Reset() {
|
|
*x = RelayNoiseMsg1Pb{}
|
|
mi := &file_peer_rpc_proto_msgTypes[43]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RelayNoiseMsg1Pb) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RelayNoiseMsg1Pb) ProtoMessage() {}
|
|
|
|
func (x *RelayNoiseMsg1Pb) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[43]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RelayNoiseMsg1Pb.ProtoReflect.Descriptor instead.
|
|
func (*RelayNoiseMsg1Pb) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{43}
|
|
}
|
|
|
|
func (x *RelayNoiseMsg1Pb) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RelayNoiseMsg1Pb) GetASessionGeneration() uint32 {
|
|
if x != nil && x.ASessionGeneration != nil {
|
|
return *x.ASessionGeneration
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RelayNoiseMsg1Pb) GetAConnId() *common.UUID {
|
|
if x != nil {
|
|
return x.AConnId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RelayNoiseMsg1Pb) GetClientEncryptionAlgorithm() string {
|
|
if x != nil {
|
|
return x.ClientEncryptionAlgorithm
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RelayNoiseMsg2Pb struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Action PeerConnSessionActionPb `protobuf:"varint,3,opt,name=action,proto3,enum=peer_rpc.PeerConnSessionActionPb" json:"action,omitempty"`
|
|
BSessionGeneration uint32 `protobuf:"varint,4,opt,name=b_session_generation,json=bSessionGeneration,proto3" json:"b_session_generation,omitempty"`
|
|
RootKey_32 []byte `protobuf:"bytes,5,opt,name=root_key_32,json=rootKey32,proto3,oneof" json:"root_key_32,omitempty"`
|
|
InitialEpoch uint32 `protobuf:"varint,6,opt,name=initial_epoch,json=initialEpoch,proto3" json:"initial_epoch,omitempty"`
|
|
BConnId *common.UUID `protobuf:"bytes,7,opt,name=b_conn_id,json=bConnId,proto3" json:"b_conn_id,omitempty"`
|
|
AConnIdEcho *common.UUID `protobuf:"bytes,8,opt,name=a_conn_id_echo,json=aConnIdEcho,proto3" json:"a_conn_id_echo,omitempty"`
|
|
ServerEncryptionAlgorithm string `protobuf:"bytes,10,opt,name=server_encryption_algorithm,json=serverEncryptionAlgorithm,proto3" json:"server_encryption_algorithm,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RelayNoiseMsg2Pb) Reset() {
|
|
*x = RelayNoiseMsg2Pb{}
|
|
mi := &file_peer_rpc_proto_msgTypes[44]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RelayNoiseMsg2Pb) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RelayNoiseMsg2Pb) ProtoMessage() {}
|
|
|
|
func (x *RelayNoiseMsg2Pb) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[44]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RelayNoiseMsg2Pb.ProtoReflect.Descriptor instead.
|
|
func (*RelayNoiseMsg2Pb) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{44}
|
|
}
|
|
|
|
func (x *RelayNoiseMsg2Pb) GetAction() PeerConnSessionActionPb {
|
|
if x != nil {
|
|
return x.Action
|
|
}
|
|
return PeerConnSessionActionPb_Join
|
|
}
|
|
|
|
func (x *RelayNoiseMsg2Pb) GetBSessionGeneration() uint32 {
|
|
if x != nil {
|
|
return x.BSessionGeneration
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RelayNoiseMsg2Pb) GetRootKey_32() []byte {
|
|
if x != nil {
|
|
return x.RootKey_32
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RelayNoiseMsg2Pb) GetInitialEpoch() uint32 {
|
|
if x != nil {
|
|
return x.InitialEpoch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RelayNoiseMsg2Pb) GetBConnId() *common.UUID {
|
|
if x != nil {
|
|
return x.BConnId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RelayNoiseMsg2Pb) GetAConnIdEcho() *common.UUID {
|
|
if x != nil {
|
|
return x.AConnIdEcho
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RelayNoiseMsg2Pb) GetServerEncryptionAlgorithm() string {
|
|
if x != nil {
|
|
return x.ServerEncryptionAlgorithm
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PeerConnNoiseMsg3Pb struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AConnIdEcho *common.UUID `protobuf:"bytes,1,opt,name=a_conn_id_echo,json=aConnIdEcho,proto3" json:"a_conn_id_echo,omitempty"`
|
|
BConnIdEcho *common.UUID `protobuf:"bytes,2,opt,name=b_conn_id_echo,json=bConnIdEcho,proto3" json:"b_conn_id_echo,omitempty"`
|
|
SecretProof_32 []byte `protobuf:"bytes,3,opt,name=secret_proof_32,json=secretProof32,proto3,oneof" json:"secret_proof_32,omitempty"`
|
|
SecretDigest []byte `protobuf:"bytes,4,opt,name=secret_digest,json=secretDigest,proto3" json:"secret_digest,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg3Pb) Reset() {
|
|
*x = PeerConnNoiseMsg3Pb{}
|
|
mi := &file_peer_rpc_proto_msgTypes[45]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg3Pb) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerConnNoiseMsg3Pb) ProtoMessage() {}
|
|
|
|
func (x *PeerConnNoiseMsg3Pb) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[45]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PeerConnNoiseMsg3Pb.ProtoReflect.Descriptor instead.
|
|
func (*PeerConnNoiseMsg3Pb) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{45}
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg3Pb) GetAConnIdEcho() *common.UUID {
|
|
if x != nil {
|
|
return x.AConnIdEcho
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg3Pb) GetBConnIdEcho() *common.UUID {
|
|
if x != nil {
|
|
return x.BConnIdEcho
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg3Pb) GetSecretProof_32() []byte {
|
|
if x != nil {
|
|
return x.SecretProof_32
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnNoiseMsg3Pb) GetSecretDigest() []byte {
|
|
if x != nil {
|
|
return x.SecretDigest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RouteConnPeerList_PeerConnInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId *PeerIdVersion `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
ConnectedPeerIds []uint32 `protobuf:"varint,2,rep,packed,name=connected_peer_ids,json=connectedPeerIds,proto3" json:"connected_peer_ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RouteConnPeerList_PeerConnInfo) Reset() {
|
|
*x = RouteConnPeerList_PeerConnInfo{}
|
|
mi := &file_peer_rpc_proto_msgTypes[46]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RouteConnPeerList_PeerConnInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RouteConnPeerList_PeerConnInfo) ProtoMessage() {}
|
|
|
|
func (x *RouteConnPeerList_PeerConnInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[46]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RouteConnPeerList_PeerConnInfo.ProtoReflect.Descriptor instead.
|
|
func (*RouteConnPeerList_PeerConnInfo) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{5, 0}
|
|
}
|
|
|
|
func (x *RouteConnPeerList_PeerConnInfo) GetPeerId() *PeerIdVersion {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RouteConnPeerList_PeerConnInfo) GetConnectedPeerIds() []uint32 {
|
|
if x != nil {
|
|
return x.ConnectedPeerIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RouteForeignNetworkInfos_Info struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key *ForeignNetworkRouteInfoKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Value *ForeignNetworkRouteInfoEntry `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RouteForeignNetworkInfos_Info) Reset() {
|
|
*x = RouteForeignNetworkInfos_Info{}
|
|
mi := &file_peer_rpc_proto_msgTypes[47]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RouteForeignNetworkInfos_Info) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RouteForeignNetworkInfos_Info) ProtoMessage() {}
|
|
|
|
func (x *RouteForeignNetworkInfos_Info) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[47]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RouteForeignNetworkInfos_Info.ProtoReflect.Descriptor instead.
|
|
func (*RouteForeignNetworkInfos_Info) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{9, 0}
|
|
}
|
|
|
|
func (x *RouteForeignNetworkInfos_Info) GetKey() *ForeignNetworkRouteInfoKey {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RouteForeignNetworkInfos_Info) GetValue() *ForeignNetworkRouteInfoEntry {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RouteForeignNetworkSummary_Info struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
NetworkCount uint32 `protobuf:"varint,2,opt,name=network_count,json=networkCount,proto3" json:"network_count,omitempty"`
|
|
PeerCount uint32 `protobuf:"varint,3,opt,name=peer_count,json=peerCount,proto3" json:"peer_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RouteForeignNetworkSummary_Info) Reset() {
|
|
*x = RouteForeignNetworkSummary_Info{}
|
|
mi := &file_peer_rpc_proto_msgTypes[48]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RouteForeignNetworkSummary_Info) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RouteForeignNetworkSummary_Info) ProtoMessage() {}
|
|
|
|
func (x *RouteForeignNetworkSummary_Info) ProtoReflect() protoreflect.Message {
|
|
mi := &file_peer_rpc_proto_msgTypes[48]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RouteForeignNetworkSummary_Info.ProtoReflect.Descriptor instead.
|
|
func (*RouteForeignNetworkSummary_Info) Descriptor() ([]byte, []int) {
|
|
return file_peer_rpc_proto_rawDescGZIP(), []int{10, 0}
|
|
}
|
|
|
|
func (x *RouteForeignNetworkSummary_Info) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RouteForeignNetworkSummary_Info) GetNetworkCount() uint32 {
|
|
if x != nil {
|
|
return x.NetworkCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RouteForeignNetworkSummary_Info) GetPeerCount() uint32 {
|
|
if x != nil {
|
|
return x.PeerCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_peer_rpc_proto protoreflect.FileDescriptor
|
|
|
|
const file_peer_rpc_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0epeer_rpc.proto\x12\bpeer_rpc\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\fcommon.proto\"\xe9\x01\n" +
|
|
"\x17TrustedCredentialPubkey\x12\x16\n" +
|
|
"\x06pubkey\x18\x01 \x01(\fR\x06pubkey\x12\x16\n" +
|
|
"\x06groups\x18\x02 \x03(\tR\x06groups\x12\x1f\n" +
|
|
"\vallow_relay\x18\x03 \x01(\bR\n" +
|
|
"allowRelay\x12\x1f\n" +
|
|
"\vexpiry_unix\x18\x04 \x01(\x03R\n" +
|
|
"expiryUnix\x12.\n" +
|
|
"\x13allowed_proxy_cidrs\x18\x05 \x03(\tR\x11allowedProxyCidrs\x12\x1f\n" +
|
|
"\breusable\x18\x06 \x01(\bH\x00R\breusable\x88\x01\x01B\v\n" +
|
|
"\t_reusable\"\x8a\x01\n" +
|
|
"\x1cTrustedCredentialPubkeyProof\x12A\n" +
|
|
"\n" +
|
|
"credential\x18\x01 \x01(\v2!.peer_rpc.TrustedCredentialPubkeyR\n" +
|
|
"credential\x12'\n" +
|
|
"\x0fcredential_hmac\x18\x02 \x01(\fR\x0ecredentialHmac\"\xf1\b\n" +
|
|
"\rRoutePeerInfo\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12%\n" +
|
|
"\ainst_id\x18\x02 \x01(\v2\f.common.UUIDR\x06instId\x12\x12\n" +
|
|
"\x04cost\x18\x03 \x01(\rR\x04cost\x122\n" +
|
|
"\tipv4_addr\x18\x04 \x01(\v2\x10.common.Ipv4AddrH\x00R\bipv4Addr\x88\x01\x01\x12\x1f\n" +
|
|
"\vproxy_cidrs\x18\x05 \x03(\tR\n" +
|
|
"proxyCidrs\x12\x1f\n" +
|
|
"\bhostname\x18\x06 \x01(\tH\x01R\bhostname\x88\x01\x01\x121\n" +
|
|
"\fudp_nat_type\x18\a \x01(\x0e2\x0f.common.NatTypeR\n" +
|
|
"udpNatType\x12;\n" +
|
|
"\vlast_update\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\n" +
|
|
"lastUpdate\x12\x18\n" +
|
|
"\aversion\x18\t \x01(\rR\aversion\x12)\n" +
|
|
"\x10easytier_version\x18\n" +
|
|
" \x01(\tR\x0feasytierVersion\x12:\n" +
|
|
"\ffeature_flag\x18\v \x01(\v2\x17.common.PeerFeatureFlagR\vfeatureFlag\x12\"\n" +
|
|
"\rpeer_route_id\x18\f \x01(\x04R\vpeerRouteId\x12%\n" +
|
|
"\x0enetwork_length\x18\r \x01(\rR\rnetworkLength\x12$\n" +
|
|
"\tquic_port\x18\x0e \x01(\rB\x02\x18\x01H\x02R\bquicPort\x88\x01\x01\x122\n" +
|
|
"\tipv6_addr\x18\x0f \x01(\v2\x10.common.Ipv6InetH\x03R\bipv6Addr\x88\x01\x01\x12/\n" +
|
|
"\x06groups\x18\x10 \x03(\v2\x17.peer_rpc.PeerGroupInfoR\x06groups\x121\n" +
|
|
"\ftcp_nat_type\x18\x11 \x01(\x0e2\x0f.common.NatTypeR\n" +
|
|
"tcpNatType\x12.\n" +
|
|
"\x13noise_static_pubkey\x18\x12 \x01(\fR\x11noiseStaticPubkey\x12d\n" +
|
|
"\x1atrusted_credential_pubkeys\x18\x13 \x03(\v2&.peer_rpc.TrustedCredentialPubkeyProofR\x18trustedCredentialPubkeys\x12L\n" +
|
|
"\x17ipv6_public_addr_prefix\x18\x16 \x01(\v2\x10.common.Ipv6InetH\x04R\x14ipv6PublicAddrPrefix\x88\x01\x01\x12J\n" +
|
|
"\x16ipv6_public_addr_lease\x18\x18 \x01(\v2\x10.common.Ipv6InetH\x05R\x13ipv6PublicAddrLease\x88\x01\x01B\f\n" +
|
|
"\n" +
|
|
"_ipv4_addrB\v\n" +
|
|
"\t_hostnameB\f\n" +
|
|
"\n" +
|
|
"_quic_portB\f\n" +
|
|
"\n" +
|
|
"_ipv6_addrB\x1a\n" +
|
|
"\x18_ipv6_public_addr_prefixB\x19\n" +
|
|
"\x17_ipv6_public_addr_lease\"B\n" +
|
|
"\rPeerIdVersion\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\rR\aversion\"]\n" +
|
|
"\x0fRouteConnBitmap\x122\n" +
|
|
"\bpeer_ids\x18\x01 \x03(\v2\x17.peer_rpc.PeerIdVersionR\apeerIds\x12\x16\n" +
|
|
"\x06bitmap\x18\x02 \x01(\fR\x06bitmap\"\xd5\x01\n" +
|
|
"\x11RouteConnPeerList\x12P\n" +
|
|
"\x0fpeer_conn_infos\x18\x01 \x03(\v2(.peer_rpc.RouteConnPeerList.PeerConnInfoR\rpeerConnInfos\x1an\n" +
|
|
"\fPeerConnInfo\x120\n" +
|
|
"\apeer_id\x18\x01 \x01(\v2\x17.peer_rpc.PeerIdVersionR\x06peerId\x12,\n" +
|
|
"\x12connected_peer_ids\x18\x02 \x03(\rR\x10connectedPeerIds\"?\n" +
|
|
"\x0eRoutePeerInfos\x12-\n" +
|
|
"\x05items\x18\x01 \x03(\v2\x17.peer_rpc.RoutePeerInfoR\x05items\"X\n" +
|
|
"\x1aForeignNetworkRouteInfoKey\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12!\n" +
|
|
"\fnetwork_name\x18\x02 \x01(\tR\vnetworkName\"\x90\x02\n" +
|
|
"\x1cForeignNetworkRouteInfoEntry\x12(\n" +
|
|
"\x10foreign_peer_ids\x18\x01 \x03(\rR\x0eforeignPeerIds\x12;\n" +
|
|
"\vlast_update\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
|
|
"lastUpdate\x12\x18\n" +
|
|
"\aversion\x18\x03 \x01(\rR\aversion\x122\n" +
|
|
"\x15network_secret_digest\x18\x04 \x01(\fR\x13networkSecretDigest\x12;\n" +
|
|
"\x1bmy_peer_id_for_this_network\x18\x05 \x01(\rR\x16myPeerIdForThisNetwork\"\xd7\x01\n" +
|
|
"\x18RouteForeignNetworkInfos\x12=\n" +
|
|
"\x05infos\x18\x01 \x03(\v2'.peer_rpc.RouteForeignNetworkInfos.InfoR\x05infos\x1a|\n" +
|
|
"\x04Info\x126\n" +
|
|
"\x03key\x18\x01 \x01(\v2$.peer_rpc.ForeignNetworkRouteInfoKeyR\x03key\x12<\n" +
|
|
"\x05value\x18\x02 \x01(\v2&.peer_rpc.ForeignNetworkRouteInfoEntryR\x05value\"\xb6\x02\n" +
|
|
"\x1aRouteForeignNetworkSummary\x12L\n" +
|
|
"\binfo_map\x18\x01 \x03(\v21.peer_rpc.RouteForeignNetworkSummary.InfoMapEntryR\ainfoMap\x1ac\n" +
|
|
"\x04Info\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12#\n" +
|
|
"\rnetwork_count\x18\x02 \x01(\rR\fnetworkCount\x12\x1d\n" +
|
|
"\n" +
|
|
"peer_count\x18\x03 \x01(\rR\tpeerCount\x1ae\n" +
|
|
"\fInfoMapEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\rR\x03key\x12?\n" +
|
|
"\x05value\x18\x02 \x01(\v2).peer_rpc.RouteForeignNetworkSummary.InfoR\x05value:\x028\x01\"O\n" +
|
|
"\rPeerGroupInfo\x12\x1d\n" +
|
|
"\n" +
|
|
"group_name\x18\x01 \x01(\tR\tgroupName\x12\x1f\n" +
|
|
"\vgroup_proof\x18\x02 \x01(\fR\n" +
|
|
"groupProof\"\x9c\x03\n" +
|
|
"\x14SyncRouteInfoRequest\x12\x1c\n" +
|
|
"\n" +
|
|
"my_peer_id\x18\x01 \x01(\rR\bmyPeerId\x12\"\n" +
|
|
"\rmy_session_id\x18\x02 \x01(\x04R\vmySessionId\x12!\n" +
|
|
"\fis_initiator\x18\x03 \x01(\bR\visInitiator\x127\n" +
|
|
"\n" +
|
|
"peer_infos\x18\x04 \x01(\v2\x18.peer_rpc.RoutePeerInfosR\tpeerInfos\x12<\n" +
|
|
"\vconn_bitmap\x18\x05 \x01(\v2\x19.peer_rpc.RouteConnBitmapH\x00R\n" +
|
|
"connBitmap\x12C\n" +
|
|
"\x0econn_peer_list\x18\a \x01(\v2\x1b.peer_rpc.RouteConnPeerListH\x00R\fconnPeerList\x12V\n" +
|
|
"\x15foreign_network_infos\x18\x06 \x01(\v2\".peer_rpc.RouteForeignNetworkInfosR\x13foreignNetworkInfosB\v\n" +
|
|
"\tconn_info\"\x9c\x01\n" +
|
|
"\x15SyncRouteInfoResponse\x12!\n" +
|
|
"\fis_initiator\x18\x01 \x01(\bR\visInitiator\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\x02 \x01(\x04R\tsessionId\x127\n" +
|
|
"\x05error\x18\x03 \x01(\x0e2\x1c.peer_rpc.SyncRouteInfoErrorH\x00R\x05error\x88\x01\x01B\b\n" +
|
|
"\x06_error\"c\n" +
|
|
"!AcquireIpv6PublicAddrLeaseRequest\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12%\n" +
|
|
"\ainst_id\x18\x02 \x01(\v2\f.common.UUIDR\x06instId\"\x94\x01\n" +
|
|
"\x1fRenewIpv6PublicAddrLeaseRequest\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12%\n" +
|
|
"\ainst_id\x18\x02 \x01(\v2\f.common.UUIDR\x06instId\x121\n" +
|
|
"\vleased_addr\x18\x03 \x01(\v2\x10.common.Ipv6InetR\n" +
|
|
"leasedAddr\"c\n" +
|
|
"!ReleaseIpv6PublicAddrLeaseRequest\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12%\n" +
|
|
"\ainst_id\x18\x02 \x01(\v2\f.common.UUIDR\x06instId\"_\n" +
|
|
"\x1dGetIpv6PublicAddrLeaseRequest\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12%\n" +
|
|
"\ainst_id\x18\x02 \x01(\v2\f.common.UUIDR\x06instId\"\xef\x02\n" +
|
|
"\x18Ipv6PublicAddrLeaseReply\x12(\n" +
|
|
"\x10provider_peer_id\x18\x01 \x01(\rR\x0eproviderPeerId\x126\n" +
|
|
"\x10provider_inst_id\x18\x02 \x01(\v2\f.common.UUIDR\x0eproviderInstId\x129\n" +
|
|
"\x0fprovider_prefix\x18\x03 \x01(\v2\x10.common.Ipv6InetR\x0eproviderPrefix\x121\n" +
|
|
"\vleased_addr\x18\x04 \x01(\v2\x10.common.Ipv6InetR\n" +
|
|
"leasedAddr\x12;\n" +
|
|
"\vvalid_until\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
|
|
"validUntil\x12\x16\n" +
|
|
"\x06reused\x18\x06 \x01(\bR\x06reused\x12 \n" +
|
|
"\terror_msg\x18\a \x01(\tH\x00R\berrorMsg\x88\x01\x01B\f\n" +
|
|
"\n" +
|
|
"_error_msg\"\x12\n" +
|
|
"\x10GetIpListRequest\"\x9a\x02\n" +
|
|
"\x11GetIpListResponse\x121\n" +
|
|
"\vpublic_ipv4\x18\x01 \x01(\v2\x10.common.Ipv4AddrR\n" +
|
|
"publicIpv4\x129\n" +
|
|
"\x0finterface_ipv4s\x18\x02 \x03(\v2\x10.common.Ipv4AddrR\x0einterfaceIpv4s\x121\n" +
|
|
"\vpublic_ipv6\x18\x03 \x01(\v2\x10.common.Ipv6AddrR\n" +
|
|
"publicIpv6\x129\n" +
|
|
"\x0finterface_ipv6s\x18\x04 \x03(\v2\x10.common.Ipv6AddrR\x0einterfaceIpv6s\x12)\n" +
|
|
"\tlisteners\x18\x05 \x03(\v2\v.common.UrlR\tlisteners\"\xfc\x01\n" +
|
|
"\x1dSendUdpHolePunchPacketRequest\x129\n" +
|
|
"\x0econnector_addr\x18\x01 \x01(\v2\x12.common.SocketAddrR\rconnectorAddr\x12#\n" +
|
|
"\rlistener_port\x18\x02 \x01(\rR\flistenerPort\x12>\n" +
|
|
"\x12preferred_src_ipv6\x18\x03 \x01(\v2\x10.common.Ipv6AddrR\x10preferredSrcIpv6\x12;\n" +
|
|
"\x0fconnector_addrs\x18\x04 \x03(\v2\x12.common.SocketAddrR\x0econnectorAddrs\"i\n" +
|
|
"\x1aSelectPunchListenerRequest\x12\x1b\n" +
|
|
"\tforce_new\x18\x01 \x01(\bR\bforceNew\x12.\n" +
|
|
"\x13prefer_port_mapping\x18\x02 \x01(\bR\x11preferPortMapping\"c\n" +
|
|
"\x1bSelectPunchListenerResponse\x12D\n" +
|
|
"\x14listener_mapped_addr\x18\x01 \x01(\v2\x12.common.SocketAddrR\x12listenerMappedAddr\"\xcb\x02\n" +
|
|
"\x1aSendPunchPacketConeRequest\x12D\n" +
|
|
"\x14listener_mapped_addr\x18\x01 \x01(\v2\x12.common.SocketAddrR\x12listenerMappedAddr\x12/\n" +
|
|
"\tdest_addr\x18\x02 \x01(\v2\x12.common.SocketAddrR\bdestAddr\x12%\n" +
|
|
"\x0etransaction_id\x18\x03 \x01(\rR\rtransactionId\x123\n" +
|
|
"\x16packet_count_per_batch\x18\x04 \x01(\rR\x13packetCountPerBatch\x12,\n" +
|
|
"\x12packet_batch_count\x18\x05 \x01(\rR\x10packetBatchCount\x12,\n" +
|
|
"\x12packet_interval_ms\x18\x06 \x01(\rR\x10packetIntervalMs\"\xf2\x01\n" +
|
|
"\x1dSendPunchPacketHardSymRequest\x12D\n" +
|
|
"\x14listener_mapped_addr\x18\x01 \x01(\v2\x12.common.SocketAddrR\x12listenerMappedAddr\x12/\n" +
|
|
"\n" +
|
|
"public_ips\x18\x02 \x03(\v2\x10.common.Ipv4AddrR\tpublicIps\x12%\n" +
|
|
"\x0etransaction_id\x18\x03 \x01(\rR\rtransactionId\x12\x1d\n" +
|
|
"\n" +
|
|
"port_index\x18\x04 \x01(\rR\tportIndex\x12\x14\n" +
|
|
"\x05round\x18\x05 \x01(\rR\x05round\"H\n" +
|
|
"\x1eSendPunchPacketHardSymResponse\x12&\n" +
|
|
"\x0fnext_port_index\x18\x01 \x01(\rR\rnextPortIndex\"\xaa\x02\n" +
|
|
"\x1dSendPunchPacketEasySymRequest\x12D\n" +
|
|
"\x14listener_mapped_addr\x18\x01 \x01(\v2\x12.common.SocketAddrR\x12listenerMappedAddr\x12/\n" +
|
|
"\n" +
|
|
"public_ips\x18\x02 \x03(\v2\x10.common.Ipv4AddrR\tpublicIps\x12%\n" +
|
|
"\x0etransaction_id\x18\x03 \x01(\rR\rtransactionId\x12\"\n" +
|
|
"\rbase_port_num\x18\x04 \x01(\rR\vbasePortNum\x12 \n" +
|
|
"\fmax_port_num\x18\x05 \x01(\rR\n" +
|
|
"maxPortNum\x12%\n" +
|
|
"\x0eis_incremental\x18\x06 \x01(\bR\risIncremental\"\xe7\x01\n" +
|
|
"!SendPunchPacketBothEasySymRequest\x12(\n" +
|
|
"\x10udp_socket_count\x18\x01 \x01(\rR\x0eudpSocketCount\x12-\n" +
|
|
"\tpublic_ip\x18\x02 \x01(\v2\x10.common.Ipv4AddrR\bpublicIp\x12%\n" +
|
|
"\x0etransaction_id\x18\x03 \x01(\rR\rtransactionId\x12 \n" +
|
|
"\fdst_port_num\x18\x04 \x01(\rR\n" +
|
|
"dstPortNum\x12 \n" +
|
|
"\fwait_time_ms\x18\x05 \x01(\rR\n" +
|
|
"waitTimeMs\"{\n" +
|
|
"\"SendPunchPacketBothEasySymResponse\x12\x17\n" +
|
|
"\ais_busy\x18\x01 \x01(\bR\x06isBusy\x12<\n" +
|
|
"\x10base_mapped_addr\x18\x02 \x01(\v2\x12.common.SocketAddrR\x0ebaseMappedAddr\"]\n" +
|
|
"\x13TcpHolePunchRequest\x12F\n" +
|
|
"\x15connector_mapped_addr\x18\x01 \x01(\v2\x12.common.SocketAddrR\x13connectorMappedAddr\"\\\n" +
|
|
"\x14TcpHolePunchResponse\x12D\n" +
|
|
"\x14listener_mapped_addr\x18\x01 \x01(\v2\x12.common.SocketAddrR\x12listenerMappedAddr\"8\n" +
|
|
"\x17DirectConnectedPeerInfo\x12\x1d\n" +
|
|
"\n" +
|
|
"latency_ms\x18\x01 \x01(\x05R\tlatencyMs\"\xcd\x01\n" +
|
|
"\x14PeerInfoForGlobalMap\x12R\n" +
|
|
"\fdirect_peers\x18\x01 \x03(\v2/.peer_rpc.PeerInfoForGlobalMap.DirectPeersEntryR\vdirectPeers\x1aa\n" +
|
|
"\x10DirectPeersEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\rR\x03key\x127\n" +
|
|
"\x05value\x18\x02 \x01(\v2!.peer_rpc.DirectConnectedPeerInfoR\x05value:\x028\x01\"q\n" +
|
|
"\x12ReportPeersRequest\x12\x1c\n" +
|
|
"\n" +
|
|
"my_peer_id\x18\x01 \x01(\rR\bmyPeerId\x12=\n" +
|
|
"\n" +
|
|
"peer_infos\x18\x02 \x01(\v2\x1e.peer_rpc.PeerInfoForGlobalMapR\tpeerInfos\"\x15\n" +
|
|
"\x13ReportPeersResponse\"\x9b\x01\n" +
|
|
"\rGlobalPeerMap\x122\n" +
|
|
"\x03map\x18\x01 \x03(\v2 .peer_rpc.GlobalPeerMap.MapEntryR\x03map\x1aV\n" +
|
|
"\bMapEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\rR\x03key\x124\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x1e.peer_rpc.PeerInfoForGlobalMapR\x05value:\x028\x01\"1\n" +
|
|
"\x17GetGlobalPeerMapRequest\x12\x16\n" +
|
|
"\x06digest\x18\x01 \x01(\x04R\x06digest\"\x83\x02\n" +
|
|
"\x18GetGlobalPeerMapResponse\x12]\n" +
|
|
"\x0fglobal_peer_map\x18\x01 \x03(\v25.peer_rpc.GetGlobalPeerMapResponse.GlobalPeerMapEntryR\rglobalPeerMap\x12\x1b\n" +
|
|
"\x06digest\x18\x02 \x01(\x04H\x00R\x06digest\x88\x01\x01\x1a`\n" +
|
|
"\x12GlobalPeerMapEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\rR\x03key\x124\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x1e.peer_rpc.PeerInfoForGlobalMapR\x05value:\x028\x01B\t\n" +
|
|
"\a_digest\"\xd3\x01\n" +
|
|
"\x10HandshakeRequest\x12\x14\n" +
|
|
"\x05magic\x18\x01 \x01(\rR\x05magic\x12\x1c\n" +
|
|
"\n" +
|
|
"my_peer_id\x18\x02 \x01(\rR\bmyPeerId\x12\x18\n" +
|
|
"\aversion\x18\x03 \x01(\rR\aversion\x12\x1a\n" +
|
|
"\bfeatures\x18\x04 \x03(\tR\bfeatures\x12!\n" +
|
|
"\fnetwork_name\x18\x05 \x01(\tR\vnetworkName\x122\n" +
|
|
"\x15network_secret_digest\x18\x06 \x01(\fR\x13networkSecretDigest\"Y\n" +
|
|
"\vKcpConnData\x12$\n" +
|
|
"\x03src\x18\x01 \x01(\v2\x12.common.SocketAddrR\x03src\x12$\n" +
|
|
"\x03dst\x18\x04 \x01(\v2\x12.common.SocketAddrR\x03dst\"\xab\x02\n" +
|
|
"\x13PeerConnNoiseMsg1Pb\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\rR\aversion\x12$\n" +
|
|
"\x0ea_network_name\x18\x02 \x01(\tR\faNetworkName\x125\n" +
|
|
"\x14a_session_generation\x18\x03 \x01(\rH\x00R\x12aSessionGeneration\x88\x01\x01\x12(\n" +
|
|
"\ta_conn_id\x18\x04 \x01(\v2\f.common.UUIDR\aaConnId\x12>\n" +
|
|
"\x1bclient_encryption_algorithm\x18\x05 \x01(\tR\x19clientEncryptionAlgorithm\x12\x1a\n" +
|
|
"\bfeatures\x18\x06 \x03(\tR\bfeaturesB\x17\n" +
|
|
"\x15_a_session_generation\"\x99\x04\n" +
|
|
"\x13PeerConnNoiseMsg2Pb\x12$\n" +
|
|
"\x0eb_network_name\x18\x01 \x01(\tR\fbNetworkName\x12\x1b\n" +
|
|
"\trole_hint\x18\x02 \x01(\rR\broleHint\x129\n" +
|
|
"\x06action\x18\x03 \x01(\x0e2!.peer_rpc.PeerConnSessionActionPbR\x06action\x120\n" +
|
|
"\x14b_session_generation\x18\x04 \x01(\rR\x12bSessionGeneration\x12#\n" +
|
|
"\vroot_key_32\x18\x05 \x01(\fH\x00R\trootKey32\x88\x01\x01\x12#\n" +
|
|
"\rinitial_epoch\x18\x06 \x01(\rR\finitialEpoch\x12(\n" +
|
|
"\tb_conn_id\x18\a \x01(\v2\f.common.UUIDR\abConnId\x121\n" +
|
|
"\x0ea_conn_id_echo\x18\b \x01(\v2\f.common.UUIDR\vaConnIdEcho\x12+\n" +
|
|
"\x0fsecret_proof_32\x18\t \x01(\fH\x01R\rsecretProof32\x88\x01\x01\x12>\n" +
|
|
"\x1bserver_encryption_algorithm\x18\n" +
|
|
" \x01(\tR\x19serverEncryptionAlgorithm\x12\x1a\n" +
|
|
"\bfeatures\x18\v \x03(\tR\bfeaturesB\x0e\n" +
|
|
"\f_root_key_32B\x12\n" +
|
|
"\x10_secret_proof_32\"\xe6\x01\n" +
|
|
"\x10RelayNoiseMsg1Pb\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\rR\aversion\x125\n" +
|
|
"\x14a_session_generation\x18\x03 \x01(\rH\x00R\x12aSessionGeneration\x88\x01\x01\x12(\n" +
|
|
"\ta_conn_id\x18\x04 \x01(\v2\f.common.UUIDR\aaConnId\x12>\n" +
|
|
"\x1bclient_encryption_algorithm\x18\x05 \x01(\tR\x19clientEncryptionAlgorithmB\x17\n" +
|
|
"\x15_a_session_generation\"\xf6\x02\n" +
|
|
"\x10RelayNoiseMsg2Pb\x129\n" +
|
|
"\x06action\x18\x03 \x01(\x0e2!.peer_rpc.PeerConnSessionActionPbR\x06action\x120\n" +
|
|
"\x14b_session_generation\x18\x04 \x01(\rR\x12bSessionGeneration\x12#\n" +
|
|
"\vroot_key_32\x18\x05 \x01(\fH\x00R\trootKey32\x88\x01\x01\x12#\n" +
|
|
"\rinitial_epoch\x18\x06 \x01(\rR\finitialEpoch\x12(\n" +
|
|
"\tb_conn_id\x18\a \x01(\v2\f.common.UUIDR\abConnId\x121\n" +
|
|
"\x0ea_conn_id_echo\x18\b \x01(\v2\f.common.UUIDR\vaConnIdEcho\x12>\n" +
|
|
"\x1bserver_encryption_algorithm\x18\n" +
|
|
" \x01(\tR\x19serverEncryptionAlgorithmB\x0e\n" +
|
|
"\f_root_key_32\"\xe1\x01\n" +
|
|
"\x13PeerConnNoiseMsg3Pb\x121\n" +
|
|
"\x0ea_conn_id_echo\x18\x01 \x01(\v2\f.common.UUIDR\vaConnIdEcho\x121\n" +
|
|
"\x0eb_conn_id_echo\x18\x02 \x01(\v2\f.common.UUIDR\vbConnIdEcho\x12+\n" +
|
|
"\x0fsecret_proof_32\x18\x03 \x01(\fH\x00R\rsecretProof32\x88\x01\x01\x12#\n" +
|
|
"\rsecret_digest\x18\x04 \x01(\fR\fsecretDigestB\x12\n" +
|
|
"\x10_secret_proof_32*6\n" +
|
|
"\x12SyncRouteInfoError\x12\x13\n" +
|
|
"\x0fDuplicatePeerId\x10\x00\x12\v\n" +
|
|
"\aStopped\x10\x01*g\n" +
|
|
"\x0fSecureAuthLevel\x12\b\n" +
|
|
"\x04None\x10\x00\x12\x1c\n" +
|
|
"\x18EncryptedUnauthenticated\x10\x01\x12\x10\n" +
|
|
"\fPeerVerified\x10\x02\x12\x1a\n" +
|
|
"\x16NetworkSecretConfirmed\x10\x03*=\n" +
|
|
"\x10PeerIdentityType\x12\t\n" +
|
|
"\x05Admin\x10\x00\x12\x0e\n" +
|
|
"\n" +
|
|
"Credential\x10\x01\x12\x0e\n" +
|
|
"\n" +
|
|
"SharedNode\x10\x02*9\n" +
|
|
"\x17PeerConnSessionActionPb\x12\b\n" +
|
|
"\x04Join\x10\x00\x12\b\n" +
|
|
"\x04Sync\x10\x01\x12\n" +
|
|
"\n" +
|
|
"\x06Create\x10\x022`\n" +
|
|
"\fOspfRouteRpc\x12P\n" +
|
|
"\rSyncRouteInfo\x12\x1e.peer_rpc.SyncRouteInfoRequest\x1a\x1f.peer_rpc.SyncRouteInfoResponse2\xf5\x02\n" +
|
|
"\x11PublicIpv6AddrRpc\x12_\n" +
|
|
"\fAcquireLease\x12+.peer_rpc.AcquireIpv6PublicAddrLeaseRequest\x1a\".peer_rpc.Ipv6PublicAddrLeaseReply\x12[\n" +
|
|
"\n" +
|
|
"RenewLease\x12).peer_rpc.RenewIpv6PublicAddrLeaseRequest\x1a\".peer_rpc.Ipv6PublicAddrLeaseReply\x12I\n" +
|
|
"\fReleaseLease\x12+.peer_rpc.ReleaseIpv6PublicAddrLeaseRequest\x1a\f.common.Void\x12W\n" +
|
|
"\bGetLease\x12'.peer_rpc.GetIpv6PublicAddrLeaseRequest\x1a\".peer_rpc.Ipv6PublicAddrLeaseReply2\xab\x01\n" +
|
|
"\x12DirectConnectorRpc\x12D\n" +
|
|
"\tGetIpList\x12\x1a.peer_rpc.GetIpListRequest\x1a\x1b.peer_rpc.GetIpListResponse\x12O\n" +
|
|
"\x16SendUdpHolePunchPacket\x12'.peer_rpc.SendUdpHolePunchPacketRequest\x1a\f.common.Void2\xf7\x03\n" +
|
|
"\x0fUdpHolePunchRpc\x12b\n" +
|
|
"\x13SelectPunchListener\x12$.peer_rpc.SelectPunchListenerRequest\x1a%.peer_rpc.SelectPunchListenerResponse\x12I\n" +
|
|
"\x13SendPunchPacketCone\x12$.peer_rpc.SendPunchPacketConeRequest\x1a\f.common.Void\x12k\n" +
|
|
"\x16SendPunchPacketHardSym\x12'.peer_rpc.SendPunchPacketHardSymRequest\x1a(.peer_rpc.SendPunchPacketHardSymResponse\x12O\n" +
|
|
"\x16SendPunchPacketEasySym\x12'.peer_rpc.SendPunchPacketEasySymRequest\x1a\f.common.Void\x12w\n" +
|
|
"\x1aSendPunchPacketBothEasySym\x12+.peer_rpc.SendPunchPacketBothEasySymRequest\x1a,.peer_rpc.SendPunchPacketBothEasySymResponse2f\n" +
|
|
"\x0fTcpHolePunchRpc\x12S\n" +
|
|
"\x12ExchangeMappedAddr\x12\x1d.peer_rpc.TcpHolePunchRequest\x1a\x1e.peer_rpc.TcpHolePunchResponse2\xb6\x01\n" +
|
|
"\rPeerCenterRpc\x12J\n" +
|
|
"\vReportPeers\x12\x1c.peer_rpc.ReportPeersRequest\x1a\x1d.peer_rpc.ReportPeersResponse\x12Y\n" +
|
|
"\x10GetGlobalPeerMap\x12!.peer_rpc.GetGlobalPeerMapRequest\x1a\".peer_rpc.GetGlobalPeerMapResponseb\x06proto3"
|
|
|
|
var (
|
|
file_peer_rpc_proto_rawDescOnce sync.Once
|
|
file_peer_rpc_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_peer_rpc_proto_rawDescGZIP() []byte {
|
|
file_peer_rpc_proto_rawDescOnce.Do(func() {
|
|
file_peer_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_peer_rpc_proto_rawDesc), len(file_peer_rpc_proto_rawDesc)))
|
|
})
|
|
return file_peer_rpc_proto_rawDescData
|
|
}
|
|
|
|
var file_peer_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
|
var file_peer_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 53)
|
|
var file_peer_rpc_proto_goTypes = []any{
|
|
(SyncRouteInfoError)(0), // 0: peer_rpc.SyncRouteInfoError
|
|
(SecureAuthLevel)(0), // 1: peer_rpc.SecureAuthLevel
|
|
(PeerIdentityType)(0), // 2: peer_rpc.PeerIdentityType
|
|
(PeerConnSessionActionPb)(0), // 3: peer_rpc.PeerConnSessionActionPb
|
|
(*TrustedCredentialPubkey)(nil), // 4: peer_rpc.TrustedCredentialPubkey
|
|
(*TrustedCredentialPubkeyProof)(nil), // 5: peer_rpc.TrustedCredentialPubkeyProof
|
|
(*RoutePeerInfo)(nil), // 6: peer_rpc.RoutePeerInfo
|
|
(*PeerIdVersion)(nil), // 7: peer_rpc.PeerIdVersion
|
|
(*RouteConnBitmap)(nil), // 8: peer_rpc.RouteConnBitmap
|
|
(*RouteConnPeerList)(nil), // 9: peer_rpc.RouteConnPeerList
|
|
(*RoutePeerInfos)(nil), // 10: peer_rpc.RoutePeerInfos
|
|
(*ForeignNetworkRouteInfoKey)(nil), // 11: peer_rpc.ForeignNetworkRouteInfoKey
|
|
(*ForeignNetworkRouteInfoEntry)(nil), // 12: peer_rpc.ForeignNetworkRouteInfoEntry
|
|
(*RouteForeignNetworkInfos)(nil), // 13: peer_rpc.RouteForeignNetworkInfos
|
|
(*RouteForeignNetworkSummary)(nil), // 14: peer_rpc.RouteForeignNetworkSummary
|
|
(*PeerGroupInfo)(nil), // 15: peer_rpc.PeerGroupInfo
|
|
(*SyncRouteInfoRequest)(nil), // 16: peer_rpc.SyncRouteInfoRequest
|
|
(*SyncRouteInfoResponse)(nil), // 17: peer_rpc.SyncRouteInfoResponse
|
|
(*AcquireIpv6PublicAddrLeaseRequest)(nil), // 18: peer_rpc.AcquireIpv6PublicAddrLeaseRequest
|
|
(*RenewIpv6PublicAddrLeaseRequest)(nil), // 19: peer_rpc.RenewIpv6PublicAddrLeaseRequest
|
|
(*ReleaseIpv6PublicAddrLeaseRequest)(nil), // 20: peer_rpc.ReleaseIpv6PublicAddrLeaseRequest
|
|
(*GetIpv6PublicAddrLeaseRequest)(nil), // 21: peer_rpc.GetIpv6PublicAddrLeaseRequest
|
|
(*Ipv6PublicAddrLeaseReply)(nil), // 22: peer_rpc.Ipv6PublicAddrLeaseReply
|
|
(*GetIpListRequest)(nil), // 23: peer_rpc.GetIpListRequest
|
|
(*GetIpListResponse)(nil), // 24: peer_rpc.GetIpListResponse
|
|
(*SendUdpHolePunchPacketRequest)(nil), // 25: peer_rpc.SendUdpHolePunchPacketRequest
|
|
(*SelectPunchListenerRequest)(nil), // 26: peer_rpc.SelectPunchListenerRequest
|
|
(*SelectPunchListenerResponse)(nil), // 27: peer_rpc.SelectPunchListenerResponse
|
|
(*SendPunchPacketConeRequest)(nil), // 28: peer_rpc.SendPunchPacketConeRequest
|
|
(*SendPunchPacketHardSymRequest)(nil), // 29: peer_rpc.SendPunchPacketHardSymRequest
|
|
(*SendPunchPacketHardSymResponse)(nil), // 30: peer_rpc.SendPunchPacketHardSymResponse
|
|
(*SendPunchPacketEasySymRequest)(nil), // 31: peer_rpc.SendPunchPacketEasySymRequest
|
|
(*SendPunchPacketBothEasySymRequest)(nil), // 32: peer_rpc.SendPunchPacketBothEasySymRequest
|
|
(*SendPunchPacketBothEasySymResponse)(nil), // 33: peer_rpc.SendPunchPacketBothEasySymResponse
|
|
(*TcpHolePunchRequest)(nil), // 34: peer_rpc.TcpHolePunchRequest
|
|
(*TcpHolePunchResponse)(nil), // 35: peer_rpc.TcpHolePunchResponse
|
|
(*DirectConnectedPeerInfo)(nil), // 36: peer_rpc.DirectConnectedPeerInfo
|
|
(*PeerInfoForGlobalMap)(nil), // 37: peer_rpc.PeerInfoForGlobalMap
|
|
(*ReportPeersRequest)(nil), // 38: peer_rpc.ReportPeersRequest
|
|
(*ReportPeersResponse)(nil), // 39: peer_rpc.ReportPeersResponse
|
|
(*GlobalPeerMap)(nil), // 40: peer_rpc.GlobalPeerMap
|
|
(*GetGlobalPeerMapRequest)(nil), // 41: peer_rpc.GetGlobalPeerMapRequest
|
|
(*GetGlobalPeerMapResponse)(nil), // 42: peer_rpc.GetGlobalPeerMapResponse
|
|
(*HandshakeRequest)(nil), // 43: peer_rpc.HandshakeRequest
|
|
(*KcpConnData)(nil), // 44: peer_rpc.KcpConnData
|
|
(*PeerConnNoiseMsg1Pb)(nil), // 45: peer_rpc.PeerConnNoiseMsg1Pb
|
|
(*PeerConnNoiseMsg2Pb)(nil), // 46: peer_rpc.PeerConnNoiseMsg2Pb
|
|
(*RelayNoiseMsg1Pb)(nil), // 47: peer_rpc.RelayNoiseMsg1Pb
|
|
(*RelayNoiseMsg2Pb)(nil), // 48: peer_rpc.RelayNoiseMsg2Pb
|
|
(*PeerConnNoiseMsg3Pb)(nil), // 49: peer_rpc.PeerConnNoiseMsg3Pb
|
|
(*RouteConnPeerList_PeerConnInfo)(nil), // 50: peer_rpc.RouteConnPeerList.PeerConnInfo
|
|
(*RouteForeignNetworkInfos_Info)(nil), // 51: peer_rpc.RouteForeignNetworkInfos.Info
|
|
(*RouteForeignNetworkSummary_Info)(nil), // 52: peer_rpc.RouteForeignNetworkSummary.Info
|
|
nil, // 53: peer_rpc.RouteForeignNetworkSummary.InfoMapEntry
|
|
nil, // 54: peer_rpc.PeerInfoForGlobalMap.DirectPeersEntry
|
|
nil, // 55: peer_rpc.GlobalPeerMap.MapEntry
|
|
nil, // 56: peer_rpc.GetGlobalPeerMapResponse.GlobalPeerMapEntry
|
|
(*common.UUID)(nil), // 57: common.UUID
|
|
(*common.Ipv4Addr)(nil), // 58: common.Ipv4Addr
|
|
(common.NatType)(0), // 59: common.NatType
|
|
(*timestamppb.Timestamp)(nil), // 60: google.protobuf.Timestamp
|
|
(*common.PeerFeatureFlag)(nil), // 61: common.PeerFeatureFlag
|
|
(*common.Ipv6Inet)(nil), // 62: common.Ipv6Inet
|
|
(*common.Ipv6Addr)(nil), // 63: common.Ipv6Addr
|
|
(*common.Url)(nil), // 64: common.Url
|
|
(*common.SocketAddr)(nil), // 65: common.SocketAddr
|
|
(*common.Void)(nil), // 66: common.Void
|
|
}
|
|
var file_peer_rpc_proto_depIdxs = []int32{
|
|
4, // 0: peer_rpc.TrustedCredentialPubkeyProof.credential:type_name -> peer_rpc.TrustedCredentialPubkey
|
|
57, // 1: peer_rpc.RoutePeerInfo.inst_id:type_name -> common.UUID
|
|
58, // 2: peer_rpc.RoutePeerInfo.ipv4_addr:type_name -> common.Ipv4Addr
|
|
59, // 3: peer_rpc.RoutePeerInfo.udp_nat_type:type_name -> common.NatType
|
|
60, // 4: peer_rpc.RoutePeerInfo.last_update:type_name -> google.protobuf.Timestamp
|
|
61, // 5: peer_rpc.RoutePeerInfo.feature_flag:type_name -> common.PeerFeatureFlag
|
|
62, // 6: peer_rpc.RoutePeerInfo.ipv6_addr:type_name -> common.Ipv6Inet
|
|
15, // 7: peer_rpc.RoutePeerInfo.groups:type_name -> peer_rpc.PeerGroupInfo
|
|
59, // 8: peer_rpc.RoutePeerInfo.tcp_nat_type:type_name -> common.NatType
|
|
5, // 9: peer_rpc.RoutePeerInfo.trusted_credential_pubkeys:type_name -> peer_rpc.TrustedCredentialPubkeyProof
|
|
62, // 10: peer_rpc.RoutePeerInfo.ipv6_public_addr_prefix:type_name -> common.Ipv6Inet
|
|
62, // 11: peer_rpc.RoutePeerInfo.ipv6_public_addr_lease:type_name -> common.Ipv6Inet
|
|
7, // 12: peer_rpc.RouteConnBitmap.peer_ids:type_name -> peer_rpc.PeerIdVersion
|
|
50, // 13: peer_rpc.RouteConnPeerList.peer_conn_infos:type_name -> peer_rpc.RouteConnPeerList.PeerConnInfo
|
|
6, // 14: peer_rpc.RoutePeerInfos.items:type_name -> peer_rpc.RoutePeerInfo
|
|
60, // 15: peer_rpc.ForeignNetworkRouteInfoEntry.last_update:type_name -> google.protobuf.Timestamp
|
|
51, // 16: peer_rpc.RouteForeignNetworkInfos.infos:type_name -> peer_rpc.RouteForeignNetworkInfos.Info
|
|
53, // 17: peer_rpc.RouteForeignNetworkSummary.info_map:type_name -> peer_rpc.RouteForeignNetworkSummary.InfoMapEntry
|
|
10, // 18: peer_rpc.SyncRouteInfoRequest.peer_infos:type_name -> peer_rpc.RoutePeerInfos
|
|
8, // 19: peer_rpc.SyncRouteInfoRequest.conn_bitmap:type_name -> peer_rpc.RouteConnBitmap
|
|
9, // 20: peer_rpc.SyncRouteInfoRequest.conn_peer_list:type_name -> peer_rpc.RouteConnPeerList
|
|
13, // 21: peer_rpc.SyncRouteInfoRequest.foreign_network_infos:type_name -> peer_rpc.RouteForeignNetworkInfos
|
|
0, // 22: peer_rpc.SyncRouteInfoResponse.error:type_name -> peer_rpc.SyncRouteInfoError
|
|
57, // 23: peer_rpc.AcquireIpv6PublicAddrLeaseRequest.inst_id:type_name -> common.UUID
|
|
57, // 24: peer_rpc.RenewIpv6PublicAddrLeaseRequest.inst_id:type_name -> common.UUID
|
|
62, // 25: peer_rpc.RenewIpv6PublicAddrLeaseRequest.leased_addr:type_name -> common.Ipv6Inet
|
|
57, // 26: peer_rpc.ReleaseIpv6PublicAddrLeaseRequest.inst_id:type_name -> common.UUID
|
|
57, // 27: peer_rpc.GetIpv6PublicAddrLeaseRequest.inst_id:type_name -> common.UUID
|
|
57, // 28: peer_rpc.Ipv6PublicAddrLeaseReply.provider_inst_id:type_name -> common.UUID
|
|
62, // 29: peer_rpc.Ipv6PublicAddrLeaseReply.provider_prefix:type_name -> common.Ipv6Inet
|
|
62, // 30: peer_rpc.Ipv6PublicAddrLeaseReply.leased_addr:type_name -> common.Ipv6Inet
|
|
60, // 31: peer_rpc.Ipv6PublicAddrLeaseReply.valid_until:type_name -> google.protobuf.Timestamp
|
|
58, // 32: peer_rpc.GetIpListResponse.public_ipv4:type_name -> common.Ipv4Addr
|
|
58, // 33: peer_rpc.GetIpListResponse.interface_ipv4s:type_name -> common.Ipv4Addr
|
|
63, // 34: peer_rpc.GetIpListResponse.public_ipv6:type_name -> common.Ipv6Addr
|
|
63, // 35: peer_rpc.GetIpListResponse.interface_ipv6s:type_name -> common.Ipv6Addr
|
|
64, // 36: peer_rpc.GetIpListResponse.listeners:type_name -> common.Url
|
|
65, // 37: peer_rpc.SendUdpHolePunchPacketRequest.connector_addr:type_name -> common.SocketAddr
|
|
63, // 38: peer_rpc.SendUdpHolePunchPacketRequest.preferred_src_ipv6:type_name -> common.Ipv6Addr
|
|
65, // 39: peer_rpc.SendUdpHolePunchPacketRequest.connector_addrs:type_name -> common.SocketAddr
|
|
65, // 40: peer_rpc.SelectPunchListenerResponse.listener_mapped_addr:type_name -> common.SocketAddr
|
|
65, // 41: peer_rpc.SendPunchPacketConeRequest.listener_mapped_addr:type_name -> common.SocketAddr
|
|
65, // 42: peer_rpc.SendPunchPacketConeRequest.dest_addr:type_name -> common.SocketAddr
|
|
65, // 43: peer_rpc.SendPunchPacketHardSymRequest.listener_mapped_addr:type_name -> common.SocketAddr
|
|
58, // 44: peer_rpc.SendPunchPacketHardSymRequest.public_ips:type_name -> common.Ipv4Addr
|
|
65, // 45: peer_rpc.SendPunchPacketEasySymRequest.listener_mapped_addr:type_name -> common.SocketAddr
|
|
58, // 46: peer_rpc.SendPunchPacketEasySymRequest.public_ips:type_name -> common.Ipv4Addr
|
|
58, // 47: peer_rpc.SendPunchPacketBothEasySymRequest.public_ip:type_name -> common.Ipv4Addr
|
|
65, // 48: peer_rpc.SendPunchPacketBothEasySymResponse.base_mapped_addr:type_name -> common.SocketAddr
|
|
65, // 49: peer_rpc.TcpHolePunchRequest.connector_mapped_addr:type_name -> common.SocketAddr
|
|
65, // 50: peer_rpc.TcpHolePunchResponse.listener_mapped_addr:type_name -> common.SocketAddr
|
|
54, // 51: peer_rpc.PeerInfoForGlobalMap.direct_peers:type_name -> peer_rpc.PeerInfoForGlobalMap.DirectPeersEntry
|
|
37, // 52: peer_rpc.ReportPeersRequest.peer_infos:type_name -> peer_rpc.PeerInfoForGlobalMap
|
|
55, // 53: peer_rpc.GlobalPeerMap.map:type_name -> peer_rpc.GlobalPeerMap.MapEntry
|
|
56, // 54: peer_rpc.GetGlobalPeerMapResponse.global_peer_map:type_name -> peer_rpc.GetGlobalPeerMapResponse.GlobalPeerMapEntry
|
|
65, // 55: peer_rpc.KcpConnData.src:type_name -> common.SocketAddr
|
|
65, // 56: peer_rpc.KcpConnData.dst:type_name -> common.SocketAddr
|
|
57, // 57: peer_rpc.PeerConnNoiseMsg1Pb.a_conn_id:type_name -> common.UUID
|
|
3, // 58: peer_rpc.PeerConnNoiseMsg2Pb.action:type_name -> peer_rpc.PeerConnSessionActionPb
|
|
57, // 59: peer_rpc.PeerConnNoiseMsg2Pb.b_conn_id:type_name -> common.UUID
|
|
57, // 60: peer_rpc.PeerConnNoiseMsg2Pb.a_conn_id_echo:type_name -> common.UUID
|
|
57, // 61: peer_rpc.RelayNoiseMsg1Pb.a_conn_id:type_name -> common.UUID
|
|
3, // 62: peer_rpc.RelayNoiseMsg2Pb.action:type_name -> peer_rpc.PeerConnSessionActionPb
|
|
57, // 63: peer_rpc.RelayNoiseMsg2Pb.b_conn_id:type_name -> common.UUID
|
|
57, // 64: peer_rpc.RelayNoiseMsg2Pb.a_conn_id_echo:type_name -> common.UUID
|
|
57, // 65: peer_rpc.PeerConnNoiseMsg3Pb.a_conn_id_echo:type_name -> common.UUID
|
|
57, // 66: peer_rpc.PeerConnNoiseMsg3Pb.b_conn_id_echo:type_name -> common.UUID
|
|
7, // 67: peer_rpc.RouteConnPeerList.PeerConnInfo.peer_id:type_name -> peer_rpc.PeerIdVersion
|
|
11, // 68: peer_rpc.RouteForeignNetworkInfos.Info.key:type_name -> peer_rpc.ForeignNetworkRouteInfoKey
|
|
12, // 69: peer_rpc.RouteForeignNetworkInfos.Info.value:type_name -> peer_rpc.ForeignNetworkRouteInfoEntry
|
|
52, // 70: peer_rpc.RouteForeignNetworkSummary.InfoMapEntry.value:type_name -> peer_rpc.RouteForeignNetworkSummary.Info
|
|
36, // 71: peer_rpc.PeerInfoForGlobalMap.DirectPeersEntry.value:type_name -> peer_rpc.DirectConnectedPeerInfo
|
|
37, // 72: peer_rpc.GlobalPeerMap.MapEntry.value:type_name -> peer_rpc.PeerInfoForGlobalMap
|
|
37, // 73: peer_rpc.GetGlobalPeerMapResponse.GlobalPeerMapEntry.value:type_name -> peer_rpc.PeerInfoForGlobalMap
|
|
16, // 74: peer_rpc.OspfRouteRpc.SyncRouteInfo:input_type -> peer_rpc.SyncRouteInfoRequest
|
|
18, // 75: peer_rpc.PublicIpv6AddrRpc.AcquireLease:input_type -> peer_rpc.AcquireIpv6PublicAddrLeaseRequest
|
|
19, // 76: peer_rpc.PublicIpv6AddrRpc.RenewLease:input_type -> peer_rpc.RenewIpv6PublicAddrLeaseRequest
|
|
20, // 77: peer_rpc.PublicIpv6AddrRpc.ReleaseLease:input_type -> peer_rpc.ReleaseIpv6PublicAddrLeaseRequest
|
|
21, // 78: peer_rpc.PublicIpv6AddrRpc.GetLease:input_type -> peer_rpc.GetIpv6PublicAddrLeaseRequest
|
|
23, // 79: peer_rpc.DirectConnectorRpc.GetIpList:input_type -> peer_rpc.GetIpListRequest
|
|
25, // 80: peer_rpc.DirectConnectorRpc.SendUdpHolePunchPacket:input_type -> peer_rpc.SendUdpHolePunchPacketRequest
|
|
26, // 81: peer_rpc.UdpHolePunchRpc.SelectPunchListener:input_type -> peer_rpc.SelectPunchListenerRequest
|
|
28, // 82: peer_rpc.UdpHolePunchRpc.SendPunchPacketCone:input_type -> peer_rpc.SendPunchPacketConeRequest
|
|
29, // 83: peer_rpc.UdpHolePunchRpc.SendPunchPacketHardSym:input_type -> peer_rpc.SendPunchPacketHardSymRequest
|
|
31, // 84: peer_rpc.UdpHolePunchRpc.SendPunchPacketEasySym:input_type -> peer_rpc.SendPunchPacketEasySymRequest
|
|
32, // 85: peer_rpc.UdpHolePunchRpc.SendPunchPacketBothEasySym:input_type -> peer_rpc.SendPunchPacketBothEasySymRequest
|
|
34, // 86: peer_rpc.TcpHolePunchRpc.ExchangeMappedAddr:input_type -> peer_rpc.TcpHolePunchRequest
|
|
38, // 87: peer_rpc.PeerCenterRpc.ReportPeers:input_type -> peer_rpc.ReportPeersRequest
|
|
41, // 88: peer_rpc.PeerCenterRpc.GetGlobalPeerMap:input_type -> peer_rpc.GetGlobalPeerMapRequest
|
|
17, // 89: peer_rpc.OspfRouteRpc.SyncRouteInfo:output_type -> peer_rpc.SyncRouteInfoResponse
|
|
22, // 90: peer_rpc.PublicIpv6AddrRpc.AcquireLease:output_type -> peer_rpc.Ipv6PublicAddrLeaseReply
|
|
22, // 91: peer_rpc.PublicIpv6AddrRpc.RenewLease:output_type -> peer_rpc.Ipv6PublicAddrLeaseReply
|
|
66, // 92: peer_rpc.PublicIpv6AddrRpc.ReleaseLease:output_type -> common.Void
|
|
22, // 93: peer_rpc.PublicIpv6AddrRpc.GetLease:output_type -> peer_rpc.Ipv6PublicAddrLeaseReply
|
|
24, // 94: peer_rpc.DirectConnectorRpc.GetIpList:output_type -> peer_rpc.GetIpListResponse
|
|
66, // 95: peer_rpc.DirectConnectorRpc.SendUdpHolePunchPacket:output_type -> common.Void
|
|
27, // 96: peer_rpc.UdpHolePunchRpc.SelectPunchListener:output_type -> peer_rpc.SelectPunchListenerResponse
|
|
66, // 97: peer_rpc.UdpHolePunchRpc.SendPunchPacketCone:output_type -> common.Void
|
|
30, // 98: peer_rpc.UdpHolePunchRpc.SendPunchPacketHardSym:output_type -> peer_rpc.SendPunchPacketHardSymResponse
|
|
66, // 99: peer_rpc.UdpHolePunchRpc.SendPunchPacketEasySym:output_type -> common.Void
|
|
33, // 100: peer_rpc.UdpHolePunchRpc.SendPunchPacketBothEasySym:output_type -> peer_rpc.SendPunchPacketBothEasySymResponse
|
|
35, // 101: peer_rpc.TcpHolePunchRpc.ExchangeMappedAddr:output_type -> peer_rpc.TcpHolePunchResponse
|
|
39, // 102: peer_rpc.PeerCenterRpc.ReportPeers:output_type -> peer_rpc.ReportPeersResponse
|
|
42, // 103: peer_rpc.PeerCenterRpc.GetGlobalPeerMap:output_type -> peer_rpc.GetGlobalPeerMapResponse
|
|
89, // [89:104] is the sub-list for method output_type
|
|
74, // [74:89] is the sub-list for method input_type
|
|
74, // [74:74] is the sub-list for extension type_name
|
|
74, // [74:74] is the sub-list for extension extendee
|
|
0, // [0:74] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_peer_rpc_proto_init() }
|
|
func file_peer_rpc_proto_init() {
|
|
if File_peer_rpc_proto != nil {
|
|
return
|
|
}
|
|
file_peer_rpc_proto_msgTypes[0].OneofWrappers = []any{}
|
|
file_peer_rpc_proto_msgTypes[2].OneofWrappers = []any{}
|
|
file_peer_rpc_proto_msgTypes[12].OneofWrappers = []any{
|
|
(*SyncRouteInfoRequest_ConnBitmap)(nil),
|
|
(*SyncRouteInfoRequest_ConnPeerList)(nil),
|
|
}
|
|
file_peer_rpc_proto_msgTypes[13].OneofWrappers = []any{}
|
|
file_peer_rpc_proto_msgTypes[18].OneofWrappers = []any{}
|
|
file_peer_rpc_proto_msgTypes[38].OneofWrappers = []any{}
|
|
file_peer_rpc_proto_msgTypes[41].OneofWrappers = []any{}
|
|
file_peer_rpc_proto_msgTypes[42].OneofWrappers = []any{}
|
|
file_peer_rpc_proto_msgTypes[43].OneofWrappers = []any{}
|
|
file_peer_rpc_proto_msgTypes[44].OneofWrappers = []any{}
|
|
file_peer_rpc_proto_msgTypes[45].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_peer_rpc_proto_rawDesc), len(file_peer_rpc_proto_rawDesc)),
|
|
NumEnums: 4,
|
|
NumMessages: 53,
|
|
NumExtensions: 0,
|
|
NumServices: 6,
|
|
},
|
|
GoTypes: file_peer_rpc_proto_goTypes,
|
|
DependencyIndexes: file_peer_rpc_proto_depIdxs,
|
|
EnumInfos: file_peer_rpc_proto_enumTypes,
|
|
MessageInfos: file_peer_rpc_proto_msgTypes,
|
|
}.Build()
|
|
File_peer_rpc_proto = out.File
|
|
file_peer_rpc_proto_goTypes = nil
|
|
file_peer_rpc_proto_depIdxs = nil
|
|
}
|