proto

package
v0.9.0-m2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) Enum

func (x ResponseType) Enum() *ResponseType

func (ResponseType) EnumDescriptor deprecated

func (ResponseType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResponseType.Descriptor instead.

func (ResponseType) Number

func (ResponseType) String

func (x ResponseType) String() string

func (ResponseType) Type

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 (*SubmarinerNatDiscoveryMessage) GetResponse

func (*SubmarinerNatDiscoveryMessage) GetVersion

func (x *SubmarinerNatDiscoveryMessage) GetVersion() int32

func (*SubmarinerNatDiscoveryMessage) ProtoMessage

func (*SubmarinerNatDiscoveryMessage) ProtoMessage()

func (*SubmarinerNatDiscoveryMessage) ProtoReflect

func (*SubmarinerNatDiscoveryMessage) Reset

func (x *SubmarinerNatDiscoveryMessage) Reset()

func (*SubmarinerNatDiscoveryMessage) 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 (*SubmarinerNatDiscoveryRequest) GetRequestNumber

func (x *SubmarinerNatDiscoveryRequest) GetRequestNumber() uint64

func (*SubmarinerNatDiscoveryRequest) GetSender

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 (*SubmarinerNatDiscoveryRequest) Reset

func (x *SubmarinerNatDiscoveryRequest) Reset()

func (*SubmarinerNatDiscoveryRequest) 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 (*SubmarinerNatDiscoveryResponse) GetReceiverEndpointID

func (x *SubmarinerNatDiscoveryResponse) GetReceiverEndpointID() string

func (*SubmarinerNatDiscoveryResponse) GetRequestNumber

func (x *SubmarinerNatDiscoveryResponse) GetRequestNumber() uint64

func (*SubmarinerNatDiscoveryResponse) GetResponse

func (*SubmarinerNatDiscoveryResponse) GetSender

func (*SubmarinerNatDiscoveryResponse) GetSenderEndpointID

func (x *SubmarinerNatDiscoveryResponse) GetSenderEndpointID() string

func (*SubmarinerNatDiscoveryResponse) ProtoMessage

func (*SubmarinerNatDiscoveryResponse) ProtoMessage()

func (*SubmarinerNatDiscoveryResponse) ProtoReflect

func (*SubmarinerNatDiscoveryResponse) Reset

func (x *SubmarinerNatDiscoveryResponse) Reset()

func (*SubmarinerNatDiscoveryResponse) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL