Documentation ¶
Index ¶
- Variables
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetEncrypted() bool
- func (m *Message) GetEncryptedKey() []byte
- func (m *Message) GetNonce() []byte
- func (m *Message) GetPayload() []byte
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)
- func (m *Payload) GetData() []byte
- func (m *Payload) GetMessageId() []byte
- func (m *Payload) GetNoReply() bool
- func (m *Payload) GetReplyToId() []byte
- func (m *Payload) GetType() PayloadType
- func (*Payload) ProtoMessage()
- func (m *Payload) Reset()
- func (m *Payload) String() string
- func (m *Payload) XXX_DiscardUnknown()
- func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Payload) XXX_Merge(src proto.Message)
- func (m *Payload) XXX_Size() int
- func (m *Payload) XXX_Unmarshal(b []byte) error
- type PayloadType
- type TextData
- func (*TextData) Descriptor() ([]byte, []int)
- func (m *TextData) GetText() string
- func (*TextData) ProtoMessage()
- func (m *TextData) Reset()
- func (m *TextData) String() string
- func (m *TextData) XXX_DiscardUnknown()
- func (m *TextData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TextData) XXX_Merge(src proto.Message)
- func (m *TextData) XXX_Size() int
- func (m *TextData) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PayloadType_name = map[int32]string{
0: "BINARY",
1: "TEXT",
2: "ACK",
3: "SESSION",
}
View Source
var PayloadType_value = map[string]int32{
"BINARY": 0,
"TEXT": 1,
"ACK": 2,
"SESSION": 3,
}
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Encrypted bool `protobuf:"varint,2,opt,name=encrypted,proto3" json:"encrypted,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` EncryptedKey []byte `protobuf:"bytes,4,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encrypted_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetEncrypted ¶
func (*Message) GetEncryptedKey ¶
func (*Message) GetPayload ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type Payload ¶
type Payload struct { Type PayloadType `protobuf:"varint,1,opt,name=type,proto3,enum=payloads.PayloadType" json:"type,omitempty"` MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` ReplyToId []byte `protobuf:"bytes,4,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"` NoReply bool `protobuf:"varint,5,opt,name=no_reply,json=noReply,proto3" json:"no_reply,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Payload) Descriptor ¶
func (*Payload) GetMessageId ¶
func (*Payload) GetNoReply ¶
func (*Payload) GetReplyToId ¶
func (*Payload) GetType ¶
func (m *Payload) GetType() PayloadType
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) XXX_DiscardUnknown ¶
func (m *Payload) XXX_DiscardUnknown()
func (*Payload) XXX_Marshal ¶
func (*Payload) XXX_Unmarshal ¶
type PayloadType ¶
type PayloadType int32
const ( PayloadType_BINARY PayloadType = 0 PayloadType_TEXT PayloadType = 1 PayloadType_ACK PayloadType = 2 PayloadType_SESSION PayloadType = 3 )
func (PayloadType) EnumDescriptor ¶
func (PayloadType) EnumDescriptor() ([]byte, []int)
func (PayloadType) String ¶
func (x PayloadType) String() string
type TextData ¶
type TextData struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TextData) Descriptor ¶
func (*TextData) ProtoMessage ¶
func (*TextData) ProtoMessage()
func (*TextData) XXX_DiscardUnknown ¶
func (m *TextData) XXX_DiscardUnknown()
func (*TextData) XXX_Marshal ¶
func (*TextData) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.