holepunch_pb

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 5 Imported by: 7

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*HolePunch) GetObsAddrs

func (m *HolePunch) GetObsAddrs() [][]byte

func (*HolePunch) GetType

func (m *HolePunch) GetType() HolePunch_Type

func (*HolePunch) Marshal

func (m *HolePunch) Marshal() (dAtA []byte, err error)

func (*HolePunch) MarshalTo

func (m *HolePunch) MarshalTo(dAtA []byte) (int, error)

func (*HolePunch) MarshalToSizedBuffer

func (m *HolePunch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HolePunch) ProtoMessage

func (*HolePunch) ProtoMessage()

func (*HolePunch) Reset

func (m *HolePunch) Reset()

func (*HolePunch) Size

func (m *HolePunch) Size() (n int)

func (*HolePunch) String

func (m *HolePunch) String() string

func (*HolePunch) Unmarshal

func (m *HolePunch) Unmarshal(dAtA []byte) error

func (*HolePunch) XXX_DiscardUnknown

func (m *HolePunch) XXX_DiscardUnknown()

func (*HolePunch) XXX_Marshal

func (m *HolePunch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HolePunch) XXX_Merge

func (m *HolePunch) XXX_Merge(src proto.Message)

func (*HolePunch) XXX_Size

func (m *HolePunch) XXX_Size() int

func (*HolePunch) XXX_Unmarshal

func (m *HolePunch) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

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