pb

package
v0.0.0-...-a02e5fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2017 License: MIT Imports: 3 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Command) GetMethod

func (m *Command) GetMethod() Command_Method

func (*Command) GetParams

func (m *Command) GetParams() isCommand_Params

func (*Command) GetSendToAllUserDevices

func (m *Command) GetSendToAllUserDevices() *SendMessageToAllUserDevicesParams

func (*Command) GetSendToDevice

func (m *Command) GetSendToDevice() *SendMessageToDeviceParams

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

func (*Command) XXX_OneofFuncs

func (*Command) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

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 (*SendMessageToAllUserDevicesParams) ProtoMessage

func (*SendMessageToAllUserDevicesParams) ProtoMessage()

func (*SendMessageToAllUserDevicesParams) Reset

func (*SendMessageToAllUserDevicesParams) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL