Documentation ¶
Index ¶
- Variables
- type HolePunch
- func (*HolePunch) Descriptor() ([]byte, []int)
- func (m *HolePunch) GetObsAddrs() [][]byte
- func (m *HolePunch) GetType() HolePunch_Type
- func (m *HolePunch) Marshal() (dAtA []byte, err error)
- func (m *HolePunch) MarshalTo(dAtA []byte) (int, error)
- func (m *HolePunch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HolePunch) ProtoMessage()
- func (m *HolePunch) Reset()
- func (m *HolePunch) Size() (n int)
- func (m *HolePunch) String() string
- func (m *HolePunch) Unmarshal(dAtA []byte) error
- func (m *HolePunch) XXX_DiscardUnknown()
- func (m *HolePunch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HolePunch) XXX_Merge(src proto.Message)
- func (m *HolePunch) XXX_Size() int
- func (m *HolePunch) XXX_Unmarshal(b []byte) error
- type HolePunch_Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthHolepunch = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHolepunch = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupHolepunch = fmt.Errorf("proto: unexpected end of group") )
View Source
var HolePunch_Type_name = map[int32]string{
100: "CONNECT",
300: "SYNC",
}
View Source
var HolePunch_Type_value = map[string]int32{
"CONNECT": 100,
"SYNC": 300,
}
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
spec: https://github.com/libp2p/specs/blob/master/relay/DCUtR.md
func (*HolePunch) Descriptor ¶
func (*HolePunch) GetObsAddrs ¶
func (*HolePunch) GetType ¶
func (m *HolePunch) GetType() HolePunch_Type
func (*HolePunch) MarshalToSizedBuffer ¶
func (*HolePunch) ProtoMessage ¶
func (*HolePunch) ProtoMessage()
func (*HolePunch) XXX_DiscardUnknown ¶
func (m *HolePunch) XXX_DiscardUnknown()
func (*HolePunch) XXX_Marshal ¶
func (*HolePunch) XXX_Unmarshal ¶
type HolePunch_Type ¶
type HolePunch_Type int32
const ( HolePunch_CONNECT HolePunch_Type = 100 HolePunch_SYNC HolePunch_Type = 300 )
func (HolePunch_Type) Enum ¶
func (x HolePunch_Type) Enum() *HolePunch_Type
func (HolePunch_Type) EnumDescriptor ¶
func (HolePunch_Type) EnumDescriptor() ([]byte, []int)
func (HolePunch_Type) String ¶
func (x HolePunch_Type) String() string
func (*HolePunch_Type) UnmarshalJSON ¶
func (x *HolePunch_Type) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.