pb

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 4 Imported by: 0

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_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

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

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

func (HolePunch_Type) String

func (x HolePunch_Type) String() string

func (HolePunch_Type) Type

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