Documentation ¶
Index ¶
- Variables
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetDiscover() *Message_Discover
- func (x *Message) GetDiscoverResponse() *Message_DiscoverResponse
- func (x *Message) GetRegister() *Message_Register
- func (x *Message) GetRegisterResponse() *Message_RegisterResponse
- func (x *Message) GetType() Message_MessageType
- func (x *Message) GetUnregister() *Message_Unregister
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_Discover
- func (*Message_Discover) Descriptor() ([]byte, []int)deprecated
- func (x *Message_Discover) GetCookie() []byte
- func (x *Message_Discover) GetLimit() uint64
- func (x *Message_Discover) GetNs() string
- func (*Message_Discover) ProtoMessage()
- func (x *Message_Discover) ProtoReflect() protoreflect.Message
- func (x *Message_Discover) Reset()
- func (x *Message_Discover) String() string
- type Message_DiscoverResponse
- func (*Message_DiscoverResponse) Descriptor() ([]byte, []int)deprecated
- func (x *Message_DiscoverResponse) GetCookie() []byte
- func (x *Message_DiscoverResponse) GetRegistrations() []*Message_Register
- func (x *Message_DiscoverResponse) GetStatus() Message_ResponseStatus
- func (x *Message_DiscoverResponse) GetStatusText() string
- func (*Message_DiscoverResponse) ProtoMessage()
- func (x *Message_DiscoverResponse) ProtoReflect() protoreflect.Message
- func (x *Message_DiscoverResponse) Reset()
- func (x *Message_DiscoverResponse) String() string
- type Message_MessageType
- func (Message_MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x Message_MessageType) Enum() *Message_MessageType
- func (Message_MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Message_MessageType) Number() protoreflect.EnumNumber
- func (x Message_MessageType) String() string
- func (Message_MessageType) Type() protoreflect.EnumType
- func (x *Message_MessageType) UnmarshalJSON(b []byte) errordeprecated
- type Message_Register
- func (*Message_Register) Descriptor() ([]byte, []int)deprecated
- func (x *Message_Register) GetNs() string
- func (x *Message_Register) GetSignedPeerRecord() []byte
- func (x *Message_Register) GetTtl() uint64
- func (*Message_Register) ProtoMessage()
- func (x *Message_Register) ProtoReflect() protoreflect.Message
- func (x *Message_Register) Reset()
- func (x *Message_Register) String() string
- type Message_RegisterResponse
- func (*Message_RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *Message_RegisterResponse) GetStatus() Message_ResponseStatus
- func (x *Message_RegisterResponse) GetStatusText() string
- func (x *Message_RegisterResponse) GetTtl() uint64
- func (*Message_RegisterResponse) ProtoMessage()
- func (x *Message_RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *Message_RegisterResponse) Reset()
- func (x *Message_RegisterResponse) String() string
- type Message_ResponseStatus
- func (Message_ResponseStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Message_ResponseStatus) Enum() *Message_ResponseStatus
- func (Message_ResponseStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Message_ResponseStatus) Number() protoreflect.EnumNumber
- func (x Message_ResponseStatus) String() string
- func (Message_ResponseStatus) Type() protoreflect.EnumType
- func (x *Message_ResponseStatus) UnmarshalJSON(b []byte) errordeprecated
- type Message_Unregister
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Message_MessageType_name = map[int32]string{ 0: "REGISTER", 1: "REGISTER_RESPONSE", 2: "UNREGISTER", 3: "DISCOVER", 4: "DISCOVER_RESPONSE", } Message_MessageType_value = map[string]int32{ "REGISTER": 0, "REGISTER_RESPONSE": 1, "UNREGISTER": 2, "DISCOVER": 3, "DISCOVER_RESPONSE": 4, } )
Enum value maps for Message_MessageType.
View Source
var ( Message_ResponseStatus_name = map[int32]string{ 0: "OK", 100: "E_INVALID_NAMESPACE", 101: "E_INVALID_SIGNED_PEER_RECORD", 102: "E_INVALID_TTL", 103: "E_INVALID_COOKIE", 200: "E_NOT_AUTHORIZED", 300: "E_INTERNAL_ERROR", 400: "E_UNAVAILABLE", } Message_ResponseStatus_value = map[string]int32{ "OK": 0, "E_INVALID_NAMESPACE": 100, "E_INVALID_SIGNED_PEER_RECORD": 101, "E_INVALID_TTL": 102, "E_INVALID_COOKIE": 103, "E_NOT_AUTHORIZED": 200, "E_INTERNAL_ERROR": 300, "E_UNAVAILABLE": 400, } )
Enum value maps for Message_ResponseStatus.
View Source
var File_rendezvous_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Type *Message_MessageType `protobuf:"varint,1,opt,name=type,enum=rendezvous.pb.Message_MessageType" json:"type,omitempty"` Register *Message_Register `protobuf:"bytes,2,opt,name=register" json:"register,omitempty"` RegisterResponse *Message_RegisterResponse `protobuf:"bytes,3,opt,name=registerResponse" json:"registerResponse,omitempty"` Unregister *Message_Unregister `protobuf:"bytes,4,opt,name=unregister" json:"unregister,omitempty"` Discover *Message_Discover `protobuf:"bytes,5,opt,name=discover" json:"discover,omitempty"` DiscoverResponse *Message_DiscoverResponse `protobuf:"bytes,6,opt,name=discoverResponse" json:"discoverResponse,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetDiscover ¶
func (x *Message) GetDiscover() *Message_Discover
func (*Message) GetDiscoverResponse ¶
func (x *Message) GetDiscoverResponse() *Message_DiscoverResponse
func (*Message) GetRegister ¶
func (x *Message) GetRegister() *Message_Register
func (*Message) GetRegisterResponse ¶
func (x *Message) GetRegisterResponse() *Message_RegisterResponse
func (*Message) GetType ¶
func (x *Message) GetType() Message_MessageType
func (*Message) GetUnregister ¶
func (x *Message) GetUnregister() *Message_Unregister
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_Discover ¶
type Message_Discover struct { Ns *string `protobuf:"bytes,1,opt,name=ns" json:"ns,omitempty"` Limit *uint64 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"` Cookie []byte `protobuf:"bytes,3,opt,name=cookie" json:"cookie,omitempty"` // contains filtered or unexported fields }
func (*Message_Discover) Descriptor
deprecated
func (*Message_Discover) Descriptor() ([]byte, []int)
Deprecated: Use Message_Discover.ProtoReflect.Descriptor instead.
func (*Message_Discover) GetCookie ¶
func (x *Message_Discover) GetCookie() []byte
func (*Message_Discover) GetLimit ¶
func (x *Message_Discover) GetLimit() uint64
func (*Message_Discover) GetNs ¶
func (x *Message_Discover) GetNs() string
func (*Message_Discover) ProtoMessage ¶
func (*Message_Discover) ProtoMessage()
func (*Message_Discover) ProtoReflect ¶
func (x *Message_Discover) ProtoReflect() protoreflect.Message
func (*Message_Discover) Reset ¶
func (x *Message_Discover) Reset()
func (*Message_Discover) String ¶
func (x *Message_Discover) String() string
type Message_DiscoverResponse ¶
type Message_DiscoverResponse struct { Registrations []*Message_Register `protobuf:"bytes,1,rep,name=registrations" json:"registrations,omitempty"` Cookie []byte `protobuf:"bytes,2,opt,name=cookie" json:"cookie,omitempty"` Status *Message_ResponseStatus `protobuf:"varint,3,opt,name=status,enum=rendezvous.pb.Message_ResponseStatus" json:"status,omitempty"` StatusText *string `protobuf:"bytes,4,opt,name=statusText" json:"statusText,omitempty"` // contains filtered or unexported fields }
func (*Message_DiscoverResponse) Descriptor
deprecated
func (*Message_DiscoverResponse) Descriptor() ([]byte, []int)
Deprecated: Use Message_DiscoverResponse.ProtoReflect.Descriptor instead.
func (*Message_DiscoverResponse) GetCookie ¶
func (x *Message_DiscoverResponse) GetCookie() []byte
func (*Message_DiscoverResponse) GetRegistrations ¶
func (x *Message_DiscoverResponse) GetRegistrations() []*Message_Register
func (*Message_DiscoverResponse) GetStatus ¶
func (x *Message_DiscoverResponse) GetStatus() Message_ResponseStatus
func (*Message_DiscoverResponse) GetStatusText ¶
func (x *Message_DiscoverResponse) GetStatusText() string
func (*Message_DiscoverResponse) ProtoMessage ¶
func (*Message_DiscoverResponse) ProtoMessage()
func (*Message_DiscoverResponse) ProtoReflect ¶
func (x *Message_DiscoverResponse) ProtoReflect() protoreflect.Message
func (*Message_DiscoverResponse) Reset ¶
func (x *Message_DiscoverResponse) Reset()
func (*Message_DiscoverResponse) String ¶
func (x *Message_DiscoverResponse) String() string
type Message_MessageType ¶
type Message_MessageType int32
const ( Message_REGISTER Message_MessageType = 0 Message_REGISTER_RESPONSE Message_MessageType = 1 Message_UNREGISTER Message_MessageType = 2 Message_DISCOVER Message_MessageType = 3 Message_DISCOVER_RESPONSE Message_MessageType = 4 )
func (Message_MessageType) Descriptor ¶
func (Message_MessageType) Descriptor() protoreflect.EnumDescriptor
func (Message_MessageType) Enum ¶
func (x Message_MessageType) Enum() *Message_MessageType
func (Message_MessageType) EnumDescriptor
deprecated
func (Message_MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Message_MessageType.Descriptor instead.
func (Message_MessageType) Number ¶
func (x Message_MessageType) Number() protoreflect.EnumNumber
func (Message_MessageType) String ¶
func (x Message_MessageType) String() string
func (Message_MessageType) Type ¶
func (Message_MessageType) Type() protoreflect.EnumType
func (*Message_MessageType) UnmarshalJSON
deprecated
func (x *Message_MessageType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Message_Register ¶
type Message_Register struct { Ns *string `protobuf:"bytes,1,opt,name=ns" json:"ns,omitempty"` SignedPeerRecord []byte `protobuf:"bytes,2,opt,name=signedPeerRecord" json:"signedPeerRecord,omitempty"` Ttl *uint64 `protobuf:"varint,3,opt,name=ttl" json:"ttl,omitempty"` // in seconds // contains filtered or unexported fields }
func (*Message_Register) Descriptor
deprecated
func (*Message_Register) Descriptor() ([]byte, []int)
Deprecated: Use Message_Register.ProtoReflect.Descriptor instead.
func (*Message_Register) GetNs ¶
func (x *Message_Register) GetNs() string
func (*Message_Register) GetSignedPeerRecord ¶
func (x *Message_Register) GetSignedPeerRecord() []byte
func (*Message_Register) GetTtl ¶
func (x *Message_Register) GetTtl() uint64
func (*Message_Register) ProtoMessage ¶
func (*Message_Register) ProtoMessage()
func (*Message_Register) ProtoReflect ¶
func (x *Message_Register) ProtoReflect() protoreflect.Message
func (*Message_Register) Reset ¶
func (x *Message_Register) Reset()
func (*Message_Register) String ¶
func (x *Message_Register) String() string
type Message_RegisterResponse ¶
type Message_RegisterResponse struct { Status *Message_ResponseStatus `protobuf:"varint,1,opt,name=status,enum=rendezvous.pb.Message_ResponseStatus" json:"status,omitempty"` StatusText *string `protobuf:"bytes,2,opt,name=statusText" json:"statusText,omitempty"` Ttl *uint64 `protobuf:"varint,3,opt,name=ttl" json:"ttl,omitempty"` // in seconds // contains filtered or unexported fields }
func (*Message_RegisterResponse) Descriptor
deprecated
func (*Message_RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use Message_RegisterResponse.ProtoReflect.Descriptor instead.
func (*Message_RegisterResponse) GetStatus ¶
func (x *Message_RegisterResponse) GetStatus() Message_ResponseStatus
func (*Message_RegisterResponse) GetStatusText ¶
func (x *Message_RegisterResponse) GetStatusText() string
func (*Message_RegisterResponse) GetTtl ¶
func (x *Message_RegisterResponse) GetTtl() uint64
func (*Message_RegisterResponse) ProtoMessage ¶
func (*Message_RegisterResponse) ProtoMessage()
func (*Message_RegisterResponse) ProtoReflect ¶
func (x *Message_RegisterResponse) ProtoReflect() protoreflect.Message
func (*Message_RegisterResponse) Reset ¶
func (x *Message_RegisterResponse) Reset()
func (*Message_RegisterResponse) String ¶
func (x *Message_RegisterResponse) String() string
type Message_ResponseStatus ¶
type Message_ResponseStatus int32
const ( Message_OK Message_ResponseStatus = 0 Message_E_INVALID_NAMESPACE Message_ResponseStatus = 100 Message_E_INVALID_SIGNED_PEER_RECORD Message_ResponseStatus = 101 Message_E_INVALID_TTL Message_ResponseStatus = 102 Message_E_INVALID_COOKIE Message_ResponseStatus = 103 Message_E_NOT_AUTHORIZED Message_ResponseStatus = 200 Message_E_INTERNAL_ERROR Message_ResponseStatus = 300 Message_E_UNAVAILABLE Message_ResponseStatus = 400 )
func (Message_ResponseStatus) Descriptor ¶
func (Message_ResponseStatus) Descriptor() protoreflect.EnumDescriptor
func (Message_ResponseStatus) Enum ¶
func (x Message_ResponseStatus) Enum() *Message_ResponseStatus
func (Message_ResponseStatus) EnumDescriptor
deprecated
func (Message_ResponseStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Message_ResponseStatus.Descriptor instead.
func (Message_ResponseStatus) Number ¶
func (x Message_ResponseStatus) Number() protoreflect.EnumNumber
func (Message_ResponseStatus) String ¶
func (x Message_ResponseStatus) String() string
func (Message_ResponseStatus) Type ¶
func (Message_ResponseStatus) Type() protoreflect.EnumType
func (*Message_ResponseStatus) UnmarshalJSON
deprecated
func (x *Message_ResponseStatus) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Message_Unregister ¶
type Message_Unregister struct { Ns *string `protobuf:"bytes,1,opt,name=ns" json:"ns,omitempty"` // optional bytes id = 2; deprecated as per https://github.com/libp2p/specs/issues/335 // contains filtered or unexported fields }
func (*Message_Unregister) Descriptor
deprecated
func (*Message_Unregister) Descriptor() ([]byte, []int)
Deprecated: Use Message_Unregister.ProtoReflect.Descriptor instead.
func (*Message_Unregister) GetNs ¶
func (x *Message_Unregister) GetNs() string
func (*Message_Unregister) ProtoMessage ¶
func (*Message_Unregister) ProtoMessage()
func (*Message_Unregister) ProtoReflect ¶
func (x *Message_Unregister) ProtoReflect() protoreflect.Message
func (*Message_Unregister) Reset ¶
func (x *Message_Unregister) Reset()
func (*Message_Unregister) String ¶
func (x *Message_Unregister) String() string
Click to show internal directories.
Click to hide internal directories.