Documentation ¶
Index ¶
- Variables
- type HolePunch
- type HolePunch_Type
- func (HolePunch_Type) Descriptor() protoreflect.EnumDescriptor
- func (x HolePunch_Type) Enum() *HolePunch_Type
- func (HolePunch_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x HolePunch_Type) Number() protoreflect.EnumNumber
- func (x HolePunch_Type) String() string
- func (HolePunch_Type) Type() protoreflect.EnumType
- func (x *HolePunch_Type) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HolePunch_Type_name = map[int32]string{ 100: "CONNECT", 300: "SYNC", } HolePunch_Type_value = map[string]int32{ "CONNECT": 100, "SYNC": 300, } )
Enum value maps for HolePunch_Type.
View Source
var File_pb_holepunch_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type HolePunch ¶
type HolePunch struct { Type *HolePunch_Type `protobuf:"varint,1,req,name=type,enum=holepunch.pb.HolePunch_Type" json:"type,omitempty"` ObsAddrs [][]byte `protobuf:"bytes,2,rep,name=ObsAddrs" json:"ObsAddrs,omitempty"` // contains filtered or unexported fields }
spec: https://github.com/libp2p/specs/blob/master/relay/DCUtR.md
func (*HolePunch) Descriptor
deprecated
func (*HolePunch) GetObsAddrs ¶
func (*HolePunch) GetType ¶
func (x *HolePunch) GetType() HolePunch_Type
func (*HolePunch) ProtoMessage ¶
func (*HolePunch) ProtoMessage()
func (*HolePunch) ProtoReflect ¶ added in v0.25.0
func (x *HolePunch) ProtoReflect() protoreflect.Message
type HolePunch_Type ¶
type HolePunch_Type int32
const ( HolePunch_CONNECT HolePunch_Type = 100 HolePunch_SYNC HolePunch_Type = 300 )
func (HolePunch_Type) Descriptor ¶ added in v0.25.0
func (HolePunch_Type) Descriptor() protoreflect.EnumDescriptor
func (HolePunch_Type) Enum ¶
func (x HolePunch_Type) Enum() *HolePunch_Type
func (HolePunch_Type) EnumDescriptor
deprecated
func (HolePunch_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use HolePunch_Type.Descriptor instead.
func (HolePunch_Type) Number ¶ added in v0.25.0
func (x HolePunch_Type) Number() protoreflect.EnumNumber
func (HolePunch_Type) String ¶
func (x HolePunch_Type) String() string
func (HolePunch_Type) Type ¶ added in v0.25.0
func (HolePunch_Type) Type() protoreflect.EnumType
func (*HolePunch_Type) UnmarshalJSON
deprecated
func (x *HolePunch_Type) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Click to show internal directories.
Click to hide internal directories.