Documentation ¶
Index ¶
- Variables
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)deprecated
- func (x *Envelope) GetCid() string
- func (x *Envelope) GetError() *Error
- func (m *Envelope) GetMessage() isEnvelope_Message
- func (x *Envelope) GetNotifications() *Notifications
- func (x *Envelope) GetPing() *Ping
- func (x *Envelope) GetPong() *Pong
- func (x *Envelope) GetRpc() *api.Rpc
- func (*Envelope) ProtoMessage()
- func (x *Envelope) ProtoReflect() protoreflect.Message
- func (x *Envelope) Reset()
- func (x *Envelope) String() string
- type Envelope_Error
- type Envelope_Notifications
- type Envelope_Ping
- type Envelope_Pong
- type Envelope_Rpc
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetCode() int32
- func (x *Error) GetContext() map[string]string
- func (x *Error) GetMessage() string
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- type Error_Code
- type Notifications
- type Ping
- type Pong
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error_Code_name = map[int32]string{ 0: "RUNTIME_EXCEPTION", 1: "UNRECOGNIZED_PAYLOAD", 2: "MISSING_PAYLOAD", 3: "BAD_INPUT", 4: "RUNTIME_FUNCTION_NOT_FOUND", 5: "RUNTIME_FUNCTION_EXCEPTION", } Error_Code_value = map[string]int32{ "RUNTIME_EXCEPTION": 0, "UNRECOGNIZED_PAYLOAD": 1, "MISSING_PAYLOAD": 2, "BAD_INPUT": 3, "RUNTIME_FUNCTION_NOT_FOUND": 4, "RUNTIME_FUNCTION_EXCEPTION": 5, } )
Enum value maps for Error_Code.
View Source
var File_realtime_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` // Types that are assignable to Message: // *Envelope_Error // *Envelope_Notifications // *Envelope_Rpc // *Envelope_Ping // *Envelope_Pong Message isEnvelope_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
An envelope for a realtime message.
func (*Envelope) Descriptor
deprecated
func (*Envelope) GetMessage ¶
func (m *Envelope) GetMessage() isEnvelope_Message
func (*Envelope) GetNotifications ¶
func (x *Envelope) GetNotifications() *Notifications
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) ProtoReflect ¶
func (x *Envelope) ProtoReflect() protoreflect.Message
type Envelope_Error ¶
type Envelope_Error struct {
Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}
type Envelope_Notifications ¶
type Envelope_Notifications struct { // Notifications send by the server. Notifications *Notifications `protobuf:"bytes,3,opt,name=notifications,proto3,oneof"` }
type Envelope_Ping ¶
type Envelope_Ping struct { // Application-level heartbeat and connection check. Ping *Ping `protobuf:"bytes,5,opt,name=ping,proto3,oneof"` }
type Envelope_Pong ¶
type Envelope_Pong struct { // Application-level heartbeat and connection check response. Pong *Pong `protobuf:"bytes,6,opt,name=pong,proto3,oneof"` }
type Envelope_Rpc ¶
type Error ¶
type Error struct { // The error code which should be one of "Error.Code" enums. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // A message in English to help developers debug the response. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Additional error details which may be different for each response. Context map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
A logical error which may occur on the server.
func (*Error) Descriptor
deprecated
func (*Error) GetContext ¶
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Error_Code ¶
type Error_Code int32
The selection of possible error codes.
const ( // An unexpected result from the server. Error_RUNTIME_EXCEPTION Error_Code = 0 // The server received a message which is not recognised. Error_UNRECOGNIZED_PAYLOAD Error_Code = 1 // A message was expected but contains no content. Error_MISSING_PAYLOAD Error_Code = 2 // Fields in the message have an invalid format. Error_BAD_INPUT Error_Code = 3 // The runtime function does not exist on the server. Error_RUNTIME_FUNCTION_NOT_FOUND Error_Code = 4 // The runtime function executed with an error. Error_RUNTIME_FUNCTION_EXCEPTION Error_Code = 5 )
func (Error_Code) Descriptor ¶
func (Error_Code) Descriptor() protoreflect.EnumDescriptor
func (Error_Code) Enum ¶
func (x Error_Code) Enum() *Error_Code
func (Error_Code) EnumDescriptor
deprecated
func (Error_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use Error_Code.Descriptor instead.
func (Error_Code) Number ¶
func (x Error_Code) Number() protoreflect.EnumNumber
func (Error_Code) String ¶
func (x Error_Code) String() string
func (Error_Code) Type ¶
func (Error_Code) Type() protoreflect.EnumType
type Notifications ¶
type Notifications struct { // Collection of notifications. Notifications []*api.Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` // contains filtered or unexported fields }
A collection of zero or more notifications.
func (*Notifications) Descriptor
deprecated
func (*Notifications) Descriptor() ([]byte, []int)
Deprecated: Use Notifications.ProtoReflect.Descriptor instead.
func (*Notifications) GetNotifications ¶
func (x *Notifications) GetNotifications() []*api.Notification
func (*Notifications) ProtoMessage ¶
func (*Notifications) ProtoMessage()
func (*Notifications) ProtoReflect ¶
func (x *Notifications) ProtoReflect() protoreflect.Message
func (*Notifications) Reset ¶
func (x *Notifications) Reset()
func (*Notifications) String ¶
func (x *Notifications) String() string
type Ping ¶
type Ping struct {
// contains filtered or unexported fields
}
Application-level heartbeat and connection check.
func (*Ping) Descriptor
deprecated
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type Pong ¶
type Pong struct {
// contains filtered or unexported fields
}
Application-level heartbeat and connection check response.
func (*Pong) Descriptor
deprecated
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶
func (x *Pong) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.