pb

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DialStatus_name = map[int32]string{
		0:   "UNUSED",
		100: "E_DIAL_ERROR",
		101: "E_DIAL_BACK_ERROR",
		200: "OK",
	}
	DialStatus_value = map[string]int32{
		"UNUSED":            0,
		"E_DIAL_ERROR":      100,
		"E_DIAL_BACK_ERROR": 101,
		"OK":                200,
	}
)

Enum value maps for DialStatus.

View Source
var (
	DialResponse_ResponseStatus_name = map[int32]string{
		0:   "E_INTERNAL_ERROR",
		100: "E_REQUEST_REJECTED",
		101: "E_DIAL_REFUSED",
		200: "OK",
	}
	DialResponse_ResponseStatus_value = map[string]int32{
		"E_INTERNAL_ERROR":   0,
		"E_REQUEST_REJECTED": 100,
		"E_DIAL_REFUSED":     101,
		"OK":                 200,
	}
)

Enum value maps for DialResponse_ResponseStatus.

View Source
var (
	DialBackResponse_DialBackStatus_name = map[int32]string{
		0: "OK",
	}
	DialBackResponse_DialBackStatus_value = map[string]int32{
		"OK": 0,
	}
)

Enum value maps for DialBackResponse_DialBackStatus.

View Source
var File_p2p_protocol_autonatv2_pb_autonatv2_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DialBack

type DialBack struct {
	Nonce uint64 `protobuf:"fixed64,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*DialBack) Descriptor deprecated

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

Deprecated: Use DialBack.ProtoReflect.Descriptor instead.

func (*DialBack) GetNonce

func (x *DialBack) GetNonce() uint64

func (*DialBack) ProtoMessage

func (*DialBack) ProtoMessage()

func (*DialBack) ProtoReflect

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

func (*DialBack) Reset

func (x *DialBack) Reset()

func (*DialBack) String

func (x *DialBack) String() string

type DialBackResponse

type DialBackResponse struct {
	Status DialBackResponse_DialBackStatus `protobuf:"varint,1,opt,name=status,proto3,enum=autonatv2.pb.DialBackResponse_DialBackStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*DialBackResponse) Descriptor deprecated

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

Deprecated: Use DialBackResponse.ProtoReflect.Descriptor instead.

func (*DialBackResponse) GetStatus

func (*DialBackResponse) ProtoMessage

func (*DialBackResponse) ProtoMessage()

func (*DialBackResponse) ProtoReflect

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

func (*DialBackResponse) Reset

func (x *DialBackResponse) Reset()

func (*DialBackResponse) String

func (x *DialBackResponse) String() string

type DialBackResponse_DialBackStatus

type DialBackResponse_DialBackStatus int32
const (
	DialBackResponse_OK DialBackResponse_DialBackStatus = 0
)

func (DialBackResponse_DialBackStatus) Descriptor

func (DialBackResponse_DialBackStatus) Enum

func (DialBackResponse_DialBackStatus) EnumDescriptor deprecated

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

Deprecated: Use DialBackResponse_DialBackStatus.Descriptor instead.

func (DialBackResponse_DialBackStatus) Number

func (DialBackResponse_DialBackStatus) String

func (DialBackResponse_DialBackStatus) Type

type DialDataRequest

type DialDataRequest struct {
	AddrIdx  uint32 `protobuf:"varint,1,opt,name=addrIdx,proto3" json:"addrIdx,omitempty"`
	NumBytes uint64 `protobuf:"varint,2,opt,name=numBytes,proto3" json:"numBytes,omitempty"`
	// contains filtered or unexported fields
}

func (*DialDataRequest) Descriptor deprecated

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

Deprecated: Use DialDataRequest.ProtoReflect.Descriptor instead.

func (*DialDataRequest) GetAddrIdx

func (x *DialDataRequest) GetAddrIdx() uint32

func (*DialDataRequest) GetNumBytes

func (x *DialDataRequest) GetNumBytes() uint64

func (*DialDataRequest) ProtoMessage

func (*DialDataRequest) ProtoMessage()

func (*DialDataRequest) ProtoReflect

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

func (*DialDataRequest) Reset

func (x *DialDataRequest) Reset()

func (*DialDataRequest) String

func (x *DialDataRequest) String() string

type DialDataResponse

type DialDataResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DialDataResponse) Descriptor deprecated

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

Deprecated: Use DialDataResponse.ProtoReflect.Descriptor instead.

func (*DialDataResponse) GetData

func (x *DialDataResponse) GetData() []byte

func (*DialDataResponse) ProtoMessage

func (*DialDataResponse) ProtoMessage()

func (*DialDataResponse) ProtoReflect

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

func (*DialDataResponse) Reset

func (x *DialDataResponse) Reset()

func (*DialDataResponse) String

func (x *DialDataResponse) String() string

type DialRequest

type DialRequest struct {
	Addrs [][]byte `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"`
	Nonce uint64   `protobuf:"fixed64,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*DialRequest) Descriptor deprecated

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

Deprecated: Use DialRequest.ProtoReflect.Descriptor instead.

func (*DialRequest) GetAddrs

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

func (*DialRequest) GetNonce

func (x *DialRequest) GetNonce() uint64

func (*DialRequest) ProtoMessage

func (*DialRequest) ProtoMessage()

func (*DialRequest) ProtoReflect

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

func (*DialRequest) Reset

func (x *DialRequest) Reset()

func (*DialRequest) String

func (x *DialRequest) String() string

type DialResponse

type DialResponse struct {
	Status     DialResponse_ResponseStatus `protobuf:"varint,1,opt,name=status,proto3,enum=autonatv2.pb.DialResponse_ResponseStatus" json:"status,omitempty"`
	AddrIdx    uint32                      `protobuf:"varint,2,opt,name=addrIdx,proto3" json:"addrIdx,omitempty"`
	DialStatus DialStatus                  `protobuf:"varint,3,opt,name=dialStatus,proto3,enum=autonatv2.pb.DialStatus" json:"dialStatus,omitempty"`
	// contains filtered or unexported fields
}

func (*DialResponse) Descriptor deprecated

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

Deprecated: Use DialResponse.ProtoReflect.Descriptor instead.

func (*DialResponse) GetAddrIdx

func (x *DialResponse) GetAddrIdx() uint32

func (*DialResponse) GetDialStatus

func (x *DialResponse) GetDialStatus() DialStatus

func (*DialResponse) GetStatus

func (*DialResponse) ProtoMessage

func (*DialResponse) ProtoMessage()

func (*DialResponse) ProtoReflect

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

func (*DialResponse) Reset

func (x *DialResponse) Reset()

func (*DialResponse) String

func (x *DialResponse) String() string

type DialResponse_ResponseStatus

type DialResponse_ResponseStatus int32
const (
	DialResponse_E_INTERNAL_ERROR   DialResponse_ResponseStatus = 0
	DialResponse_E_REQUEST_REJECTED DialResponse_ResponseStatus = 100
	DialResponse_E_DIAL_REFUSED     DialResponse_ResponseStatus = 101
	DialResponse_OK                 DialResponse_ResponseStatus = 200
)

func (DialResponse_ResponseStatus) Descriptor

func (DialResponse_ResponseStatus) Enum

func (DialResponse_ResponseStatus) EnumDescriptor deprecated

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

Deprecated: Use DialResponse_ResponseStatus.Descriptor instead.

func (DialResponse_ResponseStatus) Number

func (DialResponse_ResponseStatus) String

func (DialResponse_ResponseStatus) Type

type DialStatus

type DialStatus int32
const (
	DialStatus_UNUSED            DialStatus = 0
	DialStatus_E_DIAL_ERROR      DialStatus = 100
	DialStatus_E_DIAL_BACK_ERROR DialStatus = 101
	DialStatus_OK                DialStatus = 200
)

func (DialStatus) Descriptor

func (DialStatus) Descriptor() protoreflect.EnumDescriptor

func (DialStatus) Enum

func (x DialStatus) Enum() *DialStatus

func (DialStatus) EnumDescriptor deprecated

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

Deprecated: Use DialStatus.Descriptor instead.

func (DialStatus) Number

func (x DialStatus) Number() protoreflect.EnumNumber

func (DialStatus) String

func (x DialStatus) String() string

func (DialStatus) Type

type Message

type Message struct {

	// Types that are assignable to Msg:
	//
	//	*Message_DialRequest
	//	*Message_DialResponse
	//	*Message_DialDataRequest
	//	*Message_DialDataResponse
	Msg isMessage_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetDialDataRequest

func (x *Message) GetDialDataRequest() *DialDataRequest

func (*Message) GetDialDataResponse

func (x *Message) GetDialDataResponse() *DialDataResponse

func (*Message) GetDialRequest

func (x *Message) GetDialRequest() *DialRequest

func (*Message) GetDialResponse

func (x *Message) GetDialResponse() *DialResponse

func (*Message) GetMsg

func (m *Message) GetMsg() isMessage_Msg

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_DialDataRequest

type Message_DialDataRequest struct {
	DialDataRequest *DialDataRequest `protobuf:"bytes,3,opt,name=dialDataRequest,proto3,oneof"`
}

type Message_DialDataResponse

type Message_DialDataResponse struct {
	DialDataResponse *DialDataResponse `protobuf:"bytes,4,opt,name=dialDataResponse,proto3,oneof"`
}

type Message_DialRequest

type Message_DialRequest struct {
	DialRequest *DialRequest `protobuf:"bytes,1,opt,name=dialRequest,proto3,oneof"`
}

type Message_DialResponse

type Message_DialResponse struct {
	DialResponse *DialResponse `protobuf:"bytes,2,opt,name=dialResponse,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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