Documentation
¶
Index ¶
- Variables
- type Packet
- func (*Packet) Descriptor() ([]byte, []int)deprecated
- func (x *Packet) GetAppID() string
- func (x *Packet) GetError() bool
- func (x *Packet) GetPayload() []byte
- func (x *Packet) GetReason() string
- func (*Packet) ProtoMessage()
- func (x *Packet) ProtoReflect() protoreflect.Message
- func (x *Packet) Reset()
- func (x *Packet) String() string
- type Payload
Constants ¶
This section is empty.
Variables ¶
View Source
var File_packet_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct {
AppID string `protobuf:"bytes,1,opt,name=appID,proto3" json:"appID,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
Error bool `protobuf:"varint,3,opt,name=error,proto3" json:"error,omitempty"`
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*Packet) Descriptor
deprecated
func (*Packet) GetPayload ¶
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) ProtoReflect ¶
func (x *Packet) ProtoReflect() protoreflect.Message
type Payload ¶
type Payload struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*Payload) Descriptor
deprecated
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.