pb

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 4 Imported by: 7

Documentation

Index

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

Deprecated: Use HolePunch.ProtoReflect.Descriptor instead.

func (*HolePunch) GetObsAddrs

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

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

func (*HolePunch) Reset

func (x *HolePunch) Reset()

func (*HolePunch) String

func (x *HolePunch) String() string

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) 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 (HolePunch_Type) String

func (x HolePunch_Type) String() string

func (HolePunch_Type) Type added in v0.25.0

func (*HolePunch_Type) UnmarshalJSON deprecated

func (x *HolePunch_Type) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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