Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
pb/packets.proto
It has these top-level messages:
InputMessage Command SendMessageToDeviceParams SendMessageToAllUserDevicesParams
Index ¶
- Variables
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetMethod() Command_Method
- func (m *Command) GetParams() isCommand_Params
- func (m *Command) GetSendToAllUserDevices() *SendMessageToAllUserDevicesParams
- func (m *Command) GetSendToDevice() *SendMessageToDeviceParams
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (*Command) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Command_Method
- type Command_SendToAllUserDevices
- type Command_SendToDevice
- type InputMessage
- func (*InputMessage) Descriptor() ([]byte, []int)
- func (m *InputMessage) GetBody() []byte
- func (m *InputMessage) GetDeviceId() string
- func (m *InputMessage) GetInputTime() int64
- func (m *InputMessage) GetType() MessageType
- func (m *InputMessage) GetUserId() string
- func (*InputMessage) ProtoMessage()
- func (m *InputMessage) Reset()
- func (m *InputMessage) String() string
- type MessageType
- type SendMessageToAllUserDevicesParams
- func (*SendMessageToAllUserDevicesParams) Descriptor() ([]byte, []int)
- func (m *SendMessageToAllUserDevicesParams) GetExcludeDevice() string
- func (m *SendMessageToAllUserDevicesParams) GetMessage() []byte
- func (m *SendMessageToAllUserDevicesParams) GetMessageType() MessageType
- func (m *SendMessageToAllUserDevicesParams) GetUserId() string
- func (*SendMessageToAllUserDevicesParams) ProtoMessage()
- func (m *SendMessageToAllUserDevicesParams) Reset()
- func (m *SendMessageToAllUserDevicesParams) String() string
- type SendMessageToDeviceParams
- func (*SendMessageToDeviceParams) Descriptor() ([]byte, []int)
- func (m *SendMessageToDeviceParams) GetDeviceId() string
- func (m *SendMessageToDeviceParams) GetMessage() []byte
- func (m *SendMessageToDeviceParams) GetMessageType() MessageType
- func (*SendMessageToDeviceParams) ProtoMessage()
- func (m *SendMessageToDeviceParams) Reset()
- func (m *SendMessageToDeviceParams) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Command_Method_name = map[int32]string{
0: "SEND_MESSAGE_TO_ALL_USER_DEVICES",
1: "SEND_MESSAGE_TO_DEVICE",
}
View Source
var Command_Method_value = map[string]int32{
"SEND_MESSAGE_TO_ALL_USER_DEVICES": 0,
"SEND_MESSAGE_TO_DEVICE": 1,
}
View Source
var MessageType_name = map[int32]string{
0: "TEXT",
1: "BINARY",
}
View Source
var MessageType_value = map[string]int32{
"TEXT": 0,
"BINARY": 1,
}
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Method Command_Method `protobuf:"varint,1,opt,name=method,enum=pb.Command_Method" json:"method,omitempty"` // Types that are valid to be assigned to Params: // *Command_SendToAllUserDevices // *Command_SendToDevice Params isCommand_Params `protobuf_oneof:"params"` }
func (*Command) Descriptor ¶
func (*Command) GetMethod ¶
func (m *Command) GetMethod() Command_Method
func (*Command) GetSendToAllUserDevices ¶
func (m *Command) GetSendToAllUserDevices() *SendMessageToAllUserDevicesParams
func (*Command) GetSendToDevice ¶
func (m *Command) GetSendToDevice() *SendMessageToDeviceParams
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
type Command_Method ¶
type Command_Method int32
const ( Command_SEND_MESSAGE_TO_ALL_USER_DEVICES Command_Method = 0 Command_SEND_MESSAGE_TO_DEVICE Command_Method = 1 )
func (Command_Method) EnumDescriptor ¶
func (Command_Method) EnumDescriptor() ([]byte, []int)
func (Command_Method) String ¶
func (x Command_Method) String() string
type Command_SendToAllUserDevices ¶
type Command_SendToAllUserDevices struct {
SendToAllUserDevices *SendMessageToAllUserDevicesParams `protobuf:"bytes,2,opt,name=sendToAllUserDevices,oneof"`
}
type Command_SendToDevice ¶
type Command_SendToDevice struct {
SendToDevice *SendMessageToDeviceParams `protobuf:"bytes,3,opt,name=sendToDevice,oneof"`
}
type InputMessage ¶
type InputMessage struct { Type MessageType `protobuf:"varint,1,opt,name=type,enum=pb.MessageType" json:"type,omitempty"` InputTime int64 `protobuf:"varint,2,opt,name=inputTime" json:"inputTime,omitempty"` UserId string `protobuf:"bytes,3,opt,name=userId" json:"userId,omitempty"` DeviceId string `protobuf:"bytes,4,opt,name=deviceId" json:"deviceId,omitempty"` Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` }
func (*InputMessage) Descriptor ¶
func (*InputMessage) Descriptor() ([]byte, []int)
func (*InputMessage) GetBody ¶
func (m *InputMessage) GetBody() []byte
func (*InputMessage) GetDeviceId ¶
func (m *InputMessage) GetDeviceId() string
func (*InputMessage) GetInputTime ¶
func (m *InputMessage) GetInputTime() int64
func (*InputMessage) GetType ¶
func (m *InputMessage) GetType() MessageType
func (*InputMessage) GetUserId ¶
func (m *InputMessage) GetUserId() string
func (*InputMessage) ProtoMessage ¶
func (*InputMessage) ProtoMessage()
func (*InputMessage) Reset ¶
func (m *InputMessage) Reset()
func (*InputMessage) String ¶
func (m *InputMessage) String() string
type MessageType ¶
type MessageType int32
const ( MessageType_TEXT MessageType = 0 MessageType_BINARY MessageType = 1 )
func (MessageType) EnumDescriptor ¶
func (MessageType) EnumDescriptor() ([]byte, []int)
func (MessageType) String ¶
func (x MessageType) String() string
type SendMessageToAllUserDevicesParams ¶
type SendMessageToAllUserDevicesParams struct { MessageType MessageType `protobuf:"varint,1,opt,name=messageType,enum=pb.MessageType" json:"messageType,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId" json:"userId,omitempty"` ExcludeDevice string `protobuf:"bytes,3,opt,name=excludeDevice" json:"excludeDevice,omitempty"` Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` }
func (*SendMessageToAllUserDevicesParams) Descriptor ¶
func (*SendMessageToAllUserDevicesParams) Descriptor() ([]byte, []int)
func (*SendMessageToAllUserDevicesParams) GetExcludeDevice ¶
func (m *SendMessageToAllUserDevicesParams) GetExcludeDevice() string
func (*SendMessageToAllUserDevicesParams) GetMessage ¶
func (m *SendMessageToAllUserDevicesParams) GetMessage() []byte
func (*SendMessageToAllUserDevicesParams) GetMessageType ¶
func (m *SendMessageToAllUserDevicesParams) GetMessageType() MessageType
func (*SendMessageToAllUserDevicesParams) GetUserId ¶
func (m *SendMessageToAllUserDevicesParams) GetUserId() string
func (*SendMessageToAllUserDevicesParams) ProtoMessage ¶
func (*SendMessageToAllUserDevicesParams) ProtoMessage()
func (*SendMessageToAllUserDevicesParams) Reset ¶
func (m *SendMessageToAllUserDevicesParams) Reset()
func (*SendMessageToAllUserDevicesParams) String ¶
func (m *SendMessageToAllUserDevicesParams) String() string
type SendMessageToDeviceParams ¶
type SendMessageToDeviceParams struct { MessageType MessageType `protobuf:"varint,1,opt,name=messageType,enum=pb.MessageType" json:"messageType,omitempty"` DeviceId string `protobuf:"bytes,2,opt,name=deviceId" json:"deviceId,omitempty"` Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` }
func (*SendMessageToDeviceParams) Descriptor ¶
func (*SendMessageToDeviceParams) Descriptor() ([]byte, []int)
func (*SendMessageToDeviceParams) GetDeviceId ¶
func (m *SendMessageToDeviceParams) GetDeviceId() string
func (*SendMessageToDeviceParams) GetMessage ¶
func (m *SendMessageToDeviceParams) GetMessage() []byte
func (*SendMessageToDeviceParams) GetMessageType ¶
func (m *SendMessageToDeviceParams) GetMessageType() MessageType
func (*SendMessageToDeviceParams) ProtoMessage ¶
func (*SendMessageToDeviceParams) ProtoMessage()
func (*SendMessageToDeviceParams) Reset ¶
func (m *SendMessageToDeviceParams) Reset()
func (*SendMessageToDeviceParams) String ¶
func (m *SendMessageToDeviceParams) String() string
Click to show internal directories.
Click to hide internal directories.