rendezvous_pb

package
v0.0.0-...-01831bb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRendezvous        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRendezvous          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRendezvous = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Message_MessageType_name = map[int32]string{
	0: "REGISTER",
	1: "REGISTER_RESPONSE",
	2: "DISCOVER",
	3: "DISCOVER_RESPONSE",
}
View Source
var Message_MessageType_value = map[string]int32{
	"REGISTER":          0,
	"REGISTER_RESPONSE": 1,
	"DISCOVER":          2,
	"DISCOVER_RESPONSE": 3,
}
View Source
var Message_ResponseStatus_name = map[int32]string{
	0:   "OK",
	100: "E_INVALID_NAMESPACE",
	101: "E_INVALID_PEER_INFO",
	102: "E_INVALID_TTL",
	200: "E_NOT_AUTHORIZED",
	300: "E_INTERNAL_ERROR",
	400: "E_UNAVAILABLE",
}
View Source
var Message_ResponseStatus_value = map[string]int32{
	"OK":                  0,
	"E_INVALID_NAMESPACE": 100,
	"E_INVALID_PEER_INFO": 101,
	"E_INVALID_TTL":       102,
	"E_NOT_AUTHORIZED":    200,
	"E_INTERNAL_ERROR":    300,
	"E_UNAVAILABLE":       400,
}

Functions

This section is empty.

Types

type Message

type Message struct {
	Type                 Message_MessageType       `protobuf:"varint,1,opt,name=type,proto3,enum=rendezvous.pb.Message_MessageType" json:"type,omitempty"`
	Register             *Message_Register         `protobuf:"bytes,2,opt,name=register,proto3" json:"register,omitempty"`
	RegisterResponse     *Message_RegisterResponse `protobuf:"bytes,3,opt,name=registerResponse,proto3" json:"registerResponse,omitempty"`
	Discover             *Message_Discover         `protobuf:"bytes,4,opt,name=discover,proto3" json:"discover,omitempty"`
	DiscoverResponse     *Message_DiscoverResponse `protobuf:"bytes,5,opt,name=discoverResponse,proto3" json:"discoverResponse,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) GetDiscover

func (m *Message) GetDiscover() *Message_Discover

func (*Message) GetDiscoverResponse

func (m *Message) GetDiscoverResponse() *Message_DiscoverResponse

func (*Message) GetRegister

func (m *Message) GetRegister() *Message_Register

func (*Message) GetRegisterResponse

func (m *Message) GetRegisterResponse() *Message_RegisterResponse

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_Discover

type Message_Discover struct {
	Ns                   string   `protobuf:"bytes,1,opt,name=ns,proto3" json:"ns,omitempty"`
	Limit                int64    `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Message_Discover) Descriptor

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

func (*Message_Discover) GetLimit

func (m *Message_Discover) GetLimit() int64

func (*Message_Discover) GetNs

func (m *Message_Discover) GetNs() string

func (*Message_Discover) Marshal

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

func (*Message_Discover) MarshalTo

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

func (*Message_Discover) MarshalToSizedBuffer

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

func (*Message_Discover) ProtoMessage

func (*Message_Discover) ProtoMessage()

func (*Message_Discover) Reset

func (m *Message_Discover) Reset()

func (*Message_Discover) Size

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

func (*Message_Discover) String

func (m *Message_Discover) String() string

func (*Message_Discover) Unmarshal

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

func (*Message_Discover) XXX_DiscardUnknown

func (m *Message_Discover) XXX_DiscardUnknown()

func (*Message_Discover) XXX_Marshal

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

func (*Message_Discover) XXX_Merge

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

func (*Message_Discover) XXX_Size

func (m *Message_Discover) XXX_Size() int

func (*Message_Discover) XXX_Unmarshal

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

type Message_DiscoverResponse

type Message_DiscoverResponse struct {
	Registrations        []*Message_Register    `protobuf:"bytes,1,rep,name=registrations,proto3" json:"registrations,omitempty"`
	Status               Message_ResponseStatus `protobuf:"varint,3,opt,name=status,proto3,enum=rendezvous.pb.Message_ResponseStatus" json:"status,omitempty"`
	StatusText           string                 `protobuf:"bytes,4,opt,name=statusText,proto3" json:"statusText,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Message_DiscoverResponse) Descriptor

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

func (*Message_DiscoverResponse) GetRegistrations

func (m *Message_DiscoverResponse) GetRegistrations() []*Message_Register

func (*Message_DiscoverResponse) GetStatus

func (*Message_DiscoverResponse) GetStatusText

func (m *Message_DiscoverResponse) GetStatusText() string

func (*Message_DiscoverResponse) Marshal

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

func (*Message_DiscoverResponse) MarshalTo

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

func (*Message_DiscoverResponse) MarshalToSizedBuffer

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

func (*Message_DiscoverResponse) ProtoMessage

func (*Message_DiscoverResponse) ProtoMessage()

func (*Message_DiscoverResponse) Reset

func (m *Message_DiscoverResponse) Reset()

func (*Message_DiscoverResponse) Size

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

func (*Message_DiscoverResponse) String

func (m *Message_DiscoverResponse) String() string

func (*Message_DiscoverResponse) Unmarshal

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

func (*Message_DiscoverResponse) XXX_DiscardUnknown

func (m *Message_DiscoverResponse) XXX_DiscardUnknown()

func (*Message_DiscoverResponse) XXX_Marshal

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

func (*Message_DiscoverResponse) XXX_Merge

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

func (*Message_DiscoverResponse) XXX_Size

func (m *Message_DiscoverResponse) XXX_Size() int

func (*Message_DiscoverResponse) XXX_Unmarshal

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

type Message_MessageType

type Message_MessageType int32
const (
	Message_REGISTER          Message_MessageType = 0
	Message_REGISTER_RESPONSE Message_MessageType = 1
	Message_DISCOVER          Message_MessageType = 2
	Message_DISCOVER_RESPONSE Message_MessageType = 3
)

func (Message_MessageType) EnumDescriptor

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

func (Message_MessageType) String

func (x Message_MessageType) String() string

type Message_Register

type Message_Register struct {
	Ns                   string   `protobuf:"bytes,1,opt,name=ns,proto3" json:"ns,omitempty"`
	SignedPeerRecord     []byte   `protobuf:"bytes,2,opt,name=signedPeerRecord,proto3" json:"signedPeerRecord,omitempty"`
	Ttl                  int64    `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Message_Register) Descriptor

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

func (*Message_Register) GetNs

func (m *Message_Register) GetNs() string

func (*Message_Register) GetSignedPeerRecord

func (m *Message_Register) GetSignedPeerRecord() []byte

func (*Message_Register) GetTtl

func (m *Message_Register) GetTtl() int64

func (*Message_Register) Marshal

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

func (*Message_Register) MarshalTo

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

func (*Message_Register) MarshalToSizedBuffer

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

func (*Message_Register) ProtoMessage

func (*Message_Register) ProtoMessage()

func (*Message_Register) Reset

func (m *Message_Register) Reset()

func (*Message_Register) Size

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

func (*Message_Register) String

func (m *Message_Register) String() string

func (*Message_Register) Unmarshal

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

func (*Message_Register) XXX_DiscardUnknown

func (m *Message_Register) XXX_DiscardUnknown()

func (*Message_Register) XXX_Marshal

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

func (*Message_Register) XXX_Merge

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

func (*Message_Register) XXX_Size

func (m *Message_Register) XXX_Size() int

func (*Message_Register) XXX_Unmarshal

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

type Message_RegisterResponse

type Message_RegisterResponse struct {
	Status               Message_ResponseStatus `protobuf:"varint,1,opt,name=status,proto3,enum=rendezvous.pb.Message_ResponseStatus" json:"status,omitempty"`
	StatusText           string                 `protobuf:"bytes,2,opt,name=statusText,proto3" json:"statusText,omitempty"`
	Ttl                  int64                  `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Message_RegisterResponse) Descriptor

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

func (*Message_RegisterResponse) GetStatus

func (*Message_RegisterResponse) GetStatusText

func (m *Message_RegisterResponse) GetStatusText() string

func (*Message_RegisterResponse) GetTtl

func (m *Message_RegisterResponse) GetTtl() int64

func (*Message_RegisterResponse) Marshal

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

func (*Message_RegisterResponse) MarshalTo

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

func (*Message_RegisterResponse) MarshalToSizedBuffer

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

func (*Message_RegisterResponse) ProtoMessage

func (*Message_RegisterResponse) ProtoMessage()

func (*Message_RegisterResponse) Reset

func (m *Message_RegisterResponse) Reset()

func (*Message_RegisterResponse) Size

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

func (*Message_RegisterResponse) String

func (m *Message_RegisterResponse) String() string

func (*Message_RegisterResponse) Unmarshal

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

func (*Message_RegisterResponse) XXX_DiscardUnknown

func (m *Message_RegisterResponse) XXX_DiscardUnknown()

func (*Message_RegisterResponse) XXX_Marshal

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

func (*Message_RegisterResponse) XXX_Merge

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

func (*Message_RegisterResponse) XXX_Size

func (m *Message_RegisterResponse) XXX_Size() int

func (*Message_RegisterResponse) XXX_Unmarshal

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

type Message_ResponseStatus

type Message_ResponseStatus int32
const (
	Message_OK                  Message_ResponseStatus = 0
	Message_E_INVALID_NAMESPACE Message_ResponseStatus = 100
	Message_E_INVALID_PEER_INFO Message_ResponseStatus = 101
	Message_E_INVALID_TTL       Message_ResponseStatus = 102
	Message_E_NOT_AUTHORIZED    Message_ResponseStatus = 200
	Message_E_INTERNAL_ERROR    Message_ResponseStatus = 300
	Message_E_UNAVAILABLE       Message_ResponseStatus = 400
)

func (Message_ResponseStatus) EnumDescriptor

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

func (Message_ResponseStatus) String

func (x Message_ResponseStatus) String() string

Jump to

Keyboard shortcuts

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