pb

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Message_MessageType_name = map[int32]string{
		0: "DIAL",
		1: "DIAL_RESPONSE",
	}
	Message_MessageType_value = map[string]int32{
		"DIAL":          0,
		"DIAL_RESPONSE": 1,
	}
)

Enum value maps for Message_MessageType.

View Source
var (
	Message_ResponseStatus_name = map[int32]string{
		0:   "OK",
		100: "E_DIAL_ERROR",
		101: "E_DIAL_REFUSED",
		200: "E_BAD_REQUEST",
		300: "E_INTERNAL_ERROR",
	}
	Message_ResponseStatus_value = map[string]int32{
		"OK":               0,
		"E_DIAL_ERROR":     100,
		"E_DIAL_REFUSED":   101,
		"E_BAD_REQUEST":    200,
		"E_INTERNAL_ERROR": 300,
	}
)

Enum value maps for Message_ResponseStatus.

View Source
var File_pb_autonat_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

type Message struct {
	Type         *Message_MessageType  `protobuf:"varint,1,opt,name=type,enum=autonat.pb.Message_MessageType" json:"type,omitempty"`
	Dial         *Message_Dial         `protobuf:"bytes,2,opt,name=dial" json:"dial,omitempty"`
	DialResponse *Message_DialResponse `protobuf:"bytes,3,opt,name=dialResponse" json:"dialResponse,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetDial

func (x *Message) GetDial() *Message_Dial

func (*Message) GetDialResponse

func (x *Message) GetDialResponse() *Message_DialResponse

func (*Message) GetType

func (x *Message) GetType() Message_MessageType

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect added in v0.25.0

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_Dial

type Message_Dial struct {
	Peer *Message_PeerInfo `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_Dial) Descriptor deprecated

func (*Message_Dial) Descriptor() ([]byte, []int)

Deprecated: Use Message_Dial.ProtoReflect.Descriptor instead.

func (*Message_Dial) GetPeer

func (x *Message_Dial) GetPeer() *Message_PeerInfo

func (*Message_Dial) ProtoMessage

func (*Message_Dial) ProtoMessage()

func (*Message_Dial) ProtoReflect added in v0.25.0

func (x *Message_Dial) ProtoReflect() protoreflect.Message

func (*Message_Dial) Reset

func (x *Message_Dial) Reset()

func (*Message_Dial) String

func (x *Message_Dial) String() string

type Message_DialResponse

type Message_DialResponse struct {
	Status     *Message_ResponseStatus `protobuf:"varint,1,opt,name=status,enum=autonat.pb.Message_ResponseStatus" json:"status,omitempty"`
	StatusText *string                 `protobuf:"bytes,2,opt,name=statusText" json:"statusText,omitempty"`
	Addr       []byte                  `protobuf:"bytes,3,opt,name=addr" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_DialResponse) Descriptor deprecated

func (*Message_DialResponse) Descriptor() ([]byte, []int)

Deprecated: Use Message_DialResponse.ProtoReflect.Descriptor instead.

func (*Message_DialResponse) GetAddr

func (x *Message_DialResponse) GetAddr() []byte

func (*Message_DialResponse) GetStatus

func (*Message_DialResponse) GetStatusText

func (x *Message_DialResponse) GetStatusText() string

func (*Message_DialResponse) ProtoMessage

func (*Message_DialResponse) ProtoMessage()

func (*Message_DialResponse) ProtoReflect added in v0.25.0

func (x *Message_DialResponse) ProtoReflect() protoreflect.Message

func (*Message_DialResponse) Reset

func (x *Message_DialResponse) Reset()

func (*Message_DialResponse) String

func (x *Message_DialResponse) String() string

type Message_MessageType

type Message_MessageType int32
const (
	Message_DIAL          Message_MessageType = 0
	Message_DIAL_RESPONSE Message_MessageType = 1
)

func (Message_MessageType) Descriptor added in v0.25.0

func (Message_MessageType) Enum

func (Message_MessageType) EnumDescriptor deprecated

func (Message_MessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Message_MessageType.Descriptor instead.

func (Message_MessageType) Number added in v0.25.0

func (Message_MessageType) String

func (x Message_MessageType) String() string

func (Message_MessageType) Type added in v0.25.0

func (*Message_MessageType) UnmarshalJSON deprecated

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

Deprecated: Do not use.

type Message_PeerInfo

type Message_PeerInfo struct {
	Id    []byte   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Addrs [][]byte `protobuf:"bytes,2,rep,name=addrs" json:"addrs,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_PeerInfo) Descriptor deprecated

func (*Message_PeerInfo) Descriptor() ([]byte, []int)

Deprecated: Use Message_PeerInfo.ProtoReflect.Descriptor instead.

func (*Message_PeerInfo) GetAddrs

func (x *Message_PeerInfo) GetAddrs() [][]byte

func (*Message_PeerInfo) GetId

func (x *Message_PeerInfo) GetId() []byte

func (*Message_PeerInfo) ProtoMessage

func (*Message_PeerInfo) ProtoMessage()

func (*Message_PeerInfo) ProtoReflect added in v0.25.0

func (x *Message_PeerInfo) ProtoReflect() protoreflect.Message

func (*Message_PeerInfo) Reset

func (x *Message_PeerInfo) Reset()

func (*Message_PeerInfo) String

func (x *Message_PeerInfo) String() string

type Message_ResponseStatus

type Message_ResponseStatus int32
const (
	Message_OK               Message_ResponseStatus = 0
	Message_E_DIAL_ERROR     Message_ResponseStatus = 100
	Message_E_DIAL_REFUSED   Message_ResponseStatus = 101
	Message_E_BAD_REQUEST    Message_ResponseStatus = 200
	Message_E_INTERNAL_ERROR Message_ResponseStatus = 300
)

func (Message_ResponseStatus) Descriptor added in v0.25.0

func (Message_ResponseStatus) Enum

func (Message_ResponseStatus) EnumDescriptor deprecated

func (Message_ResponseStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use Message_ResponseStatus.Descriptor instead.

func (Message_ResponseStatus) Number added in v0.25.0

func (Message_ResponseStatus) String

func (x Message_ResponseStatus) String() string

func (Message_ResponseStatus) Type added in v0.25.0

func (*Message_ResponseStatus) UnmarshalJSON deprecated

func (x *Message_ResponseStatus) 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