autonat_pb

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAutonat        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAutonat          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAutonat = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Message_MessageType_name = map[int32]string{
	0: "DIAL",
	1: "DIAL_RESPONSE",
}
View Source
var Message_MessageType_value = map[string]int32{
	"DIAL":          0,
	"DIAL_RESPONSE": 1,
}
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",
}
View Source
var Message_ResponseStatus_value = map[string]int32{
	"OK":               0,
	"E_DIAL_ERROR":     100,
	"E_DIAL_REFUSED":   101,
	"E_BAD_REQUEST":    200,
	"E_INTERNAL_ERROR": 300,
}

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"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) GetDial

func (m *Message) GetDial() *Message_Dial

func (*Message) GetDialResponse

func (m *Message) GetDialResponse() *Message_DialResponse

func (*Message) GetType

func (m *Message) GetType() Message_MessageType

func (*Message) Marshal

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

func (*Message) MarshalTo

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

func (*Message) MarshalToSizedBuffer

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

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

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

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

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

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type Message_Dial

type Message_Dial struct {
	Peer                 *Message_PeerInfo `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Message_Dial) Descriptor

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

func (*Message_Dial) GetPeer

func (m *Message_Dial) GetPeer() *Message_PeerInfo

func (*Message_Dial) Marshal

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

func (*Message_Dial) MarshalTo

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

func (*Message_Dial) MarshalToSizedBuffer

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

func (*Message_Dial) ProtoMessage

func (*Message_Dial) ProtoMessage()

func (*Message_Dial) Reset

func (m *Message_Dial) Reset()

func (*Message_Dial) Size

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

func (*Message_Dial) String

func (m *Message_Dial) String() string

func (*Message_Dial) Unmarshal

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

func (*Message_Dial) XXX_DiscardUnknown

func (m *Message_Dial) XXX_DiscardUnknown()

func (*Message_Dial) XXX_Marshal

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

func (*Message_Dial) XXX_Merge

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

func (*Message_Dial) XXX_Size

func (m *Message_Dial) XXX_Size() int

func (*Message_Dial) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*Message_DialResponse) Descriptor

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

func (*Message_DialResponse) GetAddr

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

func (*Message_DialResponse) GetStatus

func (*Message_DialResponse) GetStatusText

func (m *Message_DialResponse) GetStatusText() string

func (*Message_DialResponse) Marshal

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

func (*Message_DialResponse) MarshalTo

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

func (*Message_DialResponse) MarshalToSizedBuffer

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

func (*Message_DialResponse) ProtoMessage

func (*Message_DialResponse) ProtoMessage()

func (*Message_DialResponse) Reset

func (m *Message_DialResponse) Reset()

func (*Message_DialResponse) Size

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

func (*Message_DialResponse) String

func (m *Message_DialResponse) String() string

func (*Message_DialResponse) Unmarshal

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

func (*Message_DialResponse) XXX_DiscardUnknown

func (m *Message_DialResponse) XXX_DiscardUnknown()

func (*Message_DialResponse) XXX_Marshal

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

func (*Message_DialResponse) XXX_Merge

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

func (*Message_DialResponse) XXX_Size

func (m *Message_DialResponse) XXX_Size() int

func (*Message_DialResponse) XXX_Unmarshal

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

type Message_MessageType

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

func (Message_MessageType) Enum

func (Message_MessageType) EnumDescriptor

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

func (Message_MessageType) String

func (x Message_MessageType) String() string

func (*Message_MessageType) UnmarshalJSON

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Message_PeerInfo) Descriptor

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

func (*Message_PeerInfo) GetAddrs

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

func (*Message_PeerInfo) GetId

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

func (*Message_PeerInfo) Marshal

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

func (*Message_PeerInfo) MarshalTo

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

func (*Message_PeerInfo) MarshalToSizedBuffer

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

func (*Message_PeerInfo) ProtoMessage

func (*Message_PeerInfo) ProtoMessage()

func (*Message_PeerInfo) Reset

func (m *Message_PeerInfo) Reset()

func (*Message_PeerInfo) Size

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

func (*Message_PeerInfo) String

func (m *Message_PeerInfo) String() string

func (*Message_PeerInfo) Unmarshal

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

func (*Message_PeerInfo) XXX_DiscardUnknown

func (m *Message_PeerInfo) XXX_DiscardUnknown()

func (*Message_PeerInfo) XXX_Marshal

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

func (*Message_PeerInfo) XXX_Merge

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

func (*Message_PeerInfo) XXX_Size

func (m *Message_PeerInfo) XXX_Size() int

func (*Message_PeerInfo) XXX_Unmarshal

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

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) Enum

func (Message_ResponseStatus) EnumDescriptor

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

func (Message_ResponseStatus) String

func (x Message_ResponseStatus) String() string

func (*Message_ResponseStatus) UnmarshalJSON

func (x *Message_ResponseStatus) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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