Documentation ¶
Index ¶
- Constants
- Variables
- type EndpointDetails
- func (*EndpointDetails) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointDetails) GetClusterId() string
- func (x *EndpointDetails) GetEndpointId() string
- func (*EndpointDetails) ProtoMessage()
- func (x *EndpointDetails) ProtoReflect() protoreflect.Message
- func (x *EndpointDetails) Reset()
- func (x *EndpointDetails) String() string
- type IPPortPair
- type ResponseType
- func (ResponseType) Descriptor() protoreflect.EnumDescriptor
- func (x ResponseType) Enum() *ResponseType
- func (ResponseType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResponseType) Number() protoreflect.EnumNumber
- func (x ResponseType) String() string
- func (ResponseType) Type() protoreflect.EnumType
- type SubmarinerNatDiscoveryMessage
- func (*SubmarinerNatDiscoveryMessage) Descriptor() ([]byte, []int)deprecated
- func (m *SubmarinerNatDiscoveryMessage) GetMessage() isSubmarinerNatDiscoveryMessage_Message
- func (x *SubmarinerNatDiscoveryMessage) GetRequest() *SubmarinerNatDiscoveryRequest
- func (x *SubmarinerNatDiscoveryMessage) GetResponse() *SubmarinerNatDiscoveryResponse
- func (x *SubmarinerNatDiscoveryMessage) GetVersion() int32
- func (*SubmarinerNatDiscoveryMessage) ProtoMessage()
- func (x *SubmarinerNatDiscoveryMessage) ProtoReflect() protoreflect.Message
- func (x *SubmarinerNatDiscoveryMessage) Reset()
- func (x *SubmarinerNatDiscoveryMessage) String() string
- type SubmarinerNatDiscoveryMessage_Request
- type SubmarinerNatDiscoveryMessage_Response
- type SubmarinerNatDiscoveryRequest
- func (*SubmarinerNatDiscoveryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmarinerNatDiscoveryRequest) GetReceiver() *EndpointDetails
- func (x *SubmarinerNatDiscoveryRequest) GetRequestNumber() uint64
- func (x *SubmarinerNatDiscoveryRequest) GetSender() *EndpointDetails
- func (x *SubmarinerNatDiscoveryRequest) GetUsingDst() *IPPortPair
- func (x *SubmarinerNatDiscoveryRequest) GetUsingSrc() *IPPortPair
- func (*SubmarinerNatDiscoveryRequest) ProtoMessage()
- func (x *SubmarinerNatDiscoveryRequest) ProtoReflect() protoreflect.Message
- func (x *SubmarinerNatDiscoveryRequest) Reset()
- func (x *SubmarinerNatDiscoveryRequest) String() string
- type SubmarinerNatDiscoveryResponse
- func (*SubmarinerNatDiscoveryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubmarinerNatDiscoveryResponse) GetReceivedSrc() *IPPortPair
- func (x *SubmarinerNatDiscoveryResponse) GetReceiver() *EndpointDetails
- func (x *SubmarinerNatDiscoveryResponse) GetReceiverEndpointID() string
- func (x *SubmarinerNatDiscoveryResponse) GetRequestNumber() uint64
- func (x *SubmarinerNatDiscoveryResponse) GetResponse() ResponseType
- func (x *SubmarinerNatDiscoveryResponse) GetSender() *EndpointDetails
- func (x *SubmarinerNatDiscoveryResponse) GetSenderEndpointID() string
- func (*SubmarinerNatDiscoveryResponse) ProtoMessage()
- func (x *SubmarinerNatDiscoveryResponse) ProtoReflect() protoreflect.Message
- func (x *SubmarinerNatDiscoveryResponse) Reset()
- func (x *SubmarinerNatDiscoveryResponse) String() string
Constants ¶
View Source
const DefaultPort = 4490
View Source
const Version = 1
Variables ¶
View Source
var ( ResponseType_name = map[int32]string{ 0: "OK", 1: "SRC_MODIFIED", 2: "UNKNOWN_DST_CLUSTER", 3: "UNKNOWN_DST_ENDPOINT", 4: "UNKNOWN_SRC_ENDPOINT", 5: "MALFORMED", } ResponseType_value = map[string]int32{ "OK": 0, "SRC_MODIFIED": 1, "UNKNOWN_DST_CLUSTER": 2, "UNKNOWN_DST_ENDPOINT": 3, "UNKNOWN_SRC_ENDPOINT": 4, "MALFORMED": 5, } )
Enum value maps for ResponseType.
View Source
var File_pkg_natdiscovery_proto_natdiscovery_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EndpointDetails ¶
type EndpointDetails struct { // should we hash this for privacy? a hash can be checked against a known list, but can't be decoded ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` EndpointId string `protobuf:"bytes,2,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"` // contains filtered or unexported fields }
func (*EndpointDetails) Descriptor
deprecated
func (*EndpointDetails) Descriptor() ([]byte, []int)
Deprecated: Use EndpointDetails.ProtoReflect.Descriptor instead.
func (*EndpointDetails) GetClusterId ¶
func (x *EndpointDetails) GetClusterId() string
func (*EndpointDetails) GetEndpointId ¶
func (x *EndpointDetails) GetEndpointId() string
func (*EndpointDetails) ProtoMessage ¶
func (*EndpointDetails) ProtoMessage()
func (*EndpointDetails) ProtoReflect ¶
func (x *EndpointDetails) ProtoReflect() protoreflect.Message
func (*EndpointDetails) Reset ¶
func (x *EndpointDetails) Reset()
func (*EndpointDetails) String ¶
func (x *EndpointDetails) String() string
type IPPortPair ¶
type IPPortPair struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*IPPortPair) Descriptor
deprecated
func (*IPPortPair) Descriptor() ([]byte, []int)
Deprecated: Use IPPortPair.ProtoReflect.Descriptor instead.
func (*IPPortPair) GetIP ¶
func (x *IPPortPair) GetIP() string
func (*IPPortPair) GetPort ¶
func (x *IPPortPair) GetPort() uint32
func (*IPPortPair) ProtoMessage ¶
func (*IPPortPair) ProtoMessage()
func (*IPPortPair) ProtoReflect ¶
func (x *IPPortPair) ProtoReflect() protoreflect.Message
func (*IPPortPair) Reset ¶
func (x *IPPortPair) Reset()
func (*IPPortPair) String ¶
func (x *IPPortPair) String() string
type ResponseType ¶
type ResponseType int32
const ( ResponseType_OK ResponseType = 0 ResponseType_SRC_MODIFIED ResponseType = 1 ResponseType_UNKNOWN_DST_CLUSTER ResponseType = 2 ResponseType_UNKNOWN_DST_ENDPOINT ResponseType = 3 ResponseType_UNKNOWN_SRC_ENDPOINT ResponseType = 4 ResponseType_MALFORMED ResponseType = 5 )
func (ResponseType) Descriptor ¶
func (ResponseType) Descriptor() protoreflect.EnumDescriptor
func (ResponseType) Enum ¶
func (x ResponseType) Enum() *ResponseType
func (ResponseType) EnumDescriptor
deprecated
func (ResponseType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResponseType.Descriptor instead.
func (ResponseType) Number ¶
func (x ResponseType) Number() protoreflect.EnumNumber
func (ResponseType) String ¶
func (x ResponseType) String() string
func (ResponseType) Type ¶
func (ResponseType) Type() protoreflect.EnumType
type SubmarinerNatDiscoveryMessage ¶
type SubmarinerNatDiscoveryMessage struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Types that are assignable to Message: // *SubmarinerNatDiscoveryMessage_Request // *SubmarinerNatDiscoveryMessage_Response Message isSubmarinerNatDiscoveryMessage_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
func (*SubmarinerNatDiscoveryMessage) Descriptor
deprecated
func (*SubmarinerNatDiscoveryMessage) Descriptor() ([]byte, []int)
Deprecated: Use SubmarinerNatDiscoveryMessage.ProtoReflect.Descriptor instead.
func (*SubmarinerNatDiscoveryMessage) GetMessage ¶
func (m *SubmarinerNatDiscoveryMessage) GetMessage() isSubmarinerNatDiscoveryMessage_Message
func (*SubmarinerNatDiscoveryMessage) GetRequest ¶
func (x *SubmarinerNatDiscoveryMessage) GetRequest() *SubmarinerNatDiscoveryRequest
func (*SubmarinerNatDiscoveryMessage) GetResponse ¶
func (x *SubmarinerNatDiscoveryMessage) GetResponse() *SubmarinerNatDiscoveryResponse
func (*SubmarinerNatDiscoveryMessage) GetVersion ¶
func (x *SubmarinerNatDiscoveryMessage) GetVersion() int32
func (*SubmarinerNatDiscoveryMessage) ProtoMessage ¶
func (*SubmarinerNatDiscoveryMessage) ProtoMessage()
func (*SubmarinerNatDiscoveryMessage) ProtoReflect ¶
func (x *SubmarinerNatDiscoveryMessage) ProtoReflect() protoreflect.Message
func (*SubmarinerNatDiscoveryMessage) Reset ¶
func (x *SubmarinerNatDiscoveryMessage) Reset()
func (*SubmarinerNatDiscoveryMessage) String ¶
func (x *SubmarinerNatDiscoveryMessage) String() string
type SubmarinerNatDiscoveryMessage_Request ¶
type SubmarinerNatDiscoveryMessage_Request struct {
Request *SubmarinerNatDiscoveryRequest `protobuf:"bytes,2,opt,name=request,proto3,oneof"`
}
type SubmarinerNatDiscoveryMessage_Response ¶
type SubmarinerNatDiscoveryMessage_Response struct {
Response *SubmarinerNatDiscoveryResponse `protobuf:"bytes,3,opt,name=response,proto3,oneof"`
}
type SubmarinerNatDiscoveryRequest ¶
type SubmarinerNatDiscoveryRequest struct { RequestNumber uint64 `protobuf:"varint,1,opt,name=request_number,json=requestNumber,proto3" json:"request_number,omitempty"` Sender *EndpointDetails `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver *EndpointDetails `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` // The following information would allow the receiver to identify // and log if any form of NAT traversal is happening on the path UsingSrc *IPPortPair `protobuf:"bytes,4,opt,name=using_src,json=usingSrc,proto3" json:"using_src,omitempty"` UsingDst *IPPortPair `protobuf:"bytes,5,opt,name=using_dst,json=usingDst,proto3" json:"using_dst,omitempty"` // contains filtered or unexported fields }
func (*SubmarinerNatDiscoveryRequest) Descriptor
deprecated
func (*SubmarinerNatDiscoveryRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmarinerNatDiscoveryRequest.ProtoReflect.Descriptor instead.
func (*SubmarinerNatDiscoveryRequest) GetReceiver ¶
func (x *SubmarinerNatDiscoveryRequest) GetReceiver() *EndpointDetails
func (*SubmarinerNatDiscoveryRequest) GetRequestNumber ¶
func (x *SubmarinerNatDiscoveryRequest) GetRequestNumber() uint64
func (*SubmarinerNatDiscoveryRequest) GetSender ¶
func (x *SubmarinerNatDiscoveryRequest) GetSender() *EndpointDetails
func (*SubmarinerNatDiscoveryRequest) GetUsingDst ¶
func (x *SubmarinerNatDiscoveryRequest) GetUsingDst() *IPPortPair
func (*SubmarinerNatDiscoveryRequest) GetUsingSrc ¶
func (x *SubmarinerNatDiscoveryRequest) GetUsingSrc() *IPPortPair
func (*SubmarinerNatDiscoveryRequest) ProtoMessage ¶
func (*SubmarinerNatDiscoveryRequest) ProtoMessage()
func (*SubmarinerNatDiscoveryRequest) ProtoReflect ¶
func (x *SubmarinerNatDiscoveryRequest) ProtoReflect() protoreflect.Message
func (*SubmarinerNatDiscoveryRequest) Reset ¶
func (x *SubmarinerNatDiscoveryRequest) Reset()
func (*SubmarinerNatDiscoveryRequest) String ¶
func (x *SubmarinerNatDiscoveryRequest) String() string
type SubmarinerNatDiscoveryResponse ¶
type SubmarinerNatDiscoveryResponse struct { RequestNumber uint64 `protobuf:"varint,1,opt,name=request_number,json=requestNumber,proto3" json:"request_number,omitempty"` Response ResponseType `protobuf:"varint,2,opt,name=response,proto3,enum=ResponseType" json:"response,omitempty"` Sender *EndpointDetails `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` Receiver *EndpointDetails `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` // The received SRC IP / SRC port is reported, which will be useful for // diagnosing corner cases ReceivedSrc *IPPortPair `protobuf:"bytes,5,opt,name=received_src,json=receivedSrc,proto3" json:"received_src,omitempty"` // contains filtered or unexported fields }
func (*SubmarinerNatDiscoveryResponse) Descriptor
deprecated
func (*SubmarinerNatDiscoveryResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmarinerNatDiscoveryResponse.ProtoReflect.Descriptor instead.
func (*SubmarinerNatDiscoveryResponse) GetReceivedSrc ¶
func (x *SubmarinerNatDiscoveryResponse) GetReceivedSrc() *IPPortPair
func (*SubmarinerNatDiscoveryResponse) GetReceiver ¶
func (x *SubmarinerNatDiscoveryResponse) GetReceiver() *EndpointDetails
func (*SubmarinerNatDiscoveryResponse) GetReceiverEndpointID ¶
func (x *SubmarinerNatDiscoveryResponse) GetReceiverEndpointID() string
func (*SubmarinerNatDiscoveryResponse) GetRequestNumber ¶
func (x *SubmarinerNatDiscoveryResponse) GetRequestNumber() uint64
func (*SubmarinerNatDiscoveryResponse) GetResponse ¶
func (x *SubmarinerNatDiscoveryResponse) GetResponse() ResponseType
func (*SubmarinerNatDiscoveryResponse) GetSender ¶
func (x *SubmarinerNatDiscoveryResponse) GetSender() *EndpointDetails
func (*SubmarinerNatDiscoveryResponse) GetSenderEndpointID ¶
func (x *SubmarinerNatDiscoveryResponse) GetSenderEndpointID() string
func (*SubmarinerNatDiscoveryResponse) ProtoMessage ¶
func (*SubmarinerNatDiscoveryResponse) ProtoMessage()
func (*SubmarinerNatDiscoveryResponse) ProtoReflect ¶
func (x *SubmarinerNatDiscoveryResponse) ProtoReflect() protoreflect.Message
func (*SubmarinerNatDiscoveryResponse) Reset ¶
func (x *SubmarinerNatDiscoveryResponse) Reset()
func (*SubmarinerNatDiscoveryResponse) String ¶
func (x *SubmarinerNatDiscoveryResponse) String() string
Click to show internal directories.
Click to hide internal directories.