|
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.26.0
- // protoc v3.14.0
- // source: logic.int.proto
-
- package pb
-
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
-
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
-
- type ConnSignInReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
- Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // 秘钥
- ConnAddr string `protobuf:"bytes,4,opt,name=conn_addr,json=connAddr,proto3" json:"conn_addr,omitempty"` // 服务器地址
- ClientAddr string `protobuf:"bytes,5,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` // 客户端地址
- }
-
- func (x *ConnSignInReq) Reset() {
- *x = ConnSignInReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *ConnSignInReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*ConnSignInReq) ProtoMessage() {}
-
- func (x *ConnSignInReq) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use ConnSignInReq.ProtoReflect.Descriptor instead.
- func (*ConnSignInReq) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{0}
- }
-
- func (x *ConnSignInReq) GetDeviceId() int64 {
- if x != nil {
- return x.DeviceId
- }
- return 0
- }
-
- func (x *ConnSignInReq) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
-
- func (x *ConnSignInReq) GetToken() string {
- if x != nil {
- return x.Token
- }
- return ""
- }
-
- func (x *ConnSignInReq) GetConnAddr() string {
- if x != nil {
- return x.ConnAddr
- }
- return ""
- }
-
- func (x *ConnSignInReq) GetClientAddr() string {
- if x != nil {
- return x.ClientAddr
- }
- return ""
- }
-
- type SyncReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
- DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
- Seq int64 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"` // 客户端已经同步的序列号
- }
-
- func (x *SyncReq) Reset() {
- *x = SyncReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *SyncReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*SyncReq) ProtoMessage() {}
-
- func (x *SyncReq) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use SyncReq.ProtoReflect.Descriptor instead.
- func (*SyncReq) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{1}
- }
-
- func (x *SyncReq) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
-
- func (x *SyncReq) GetDeviceId() int64 {
- if x != nil {
- return x.DeviceId
- }
- return 0
- }
-
- func (x *SyncReq) GetSeq() int64 {
- if x != nil {
- return x.Seq
- }
- return 0
- }
-
- type SyncResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // 消息列表
- HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` // 是否有更多数据
- }
-
- func (x *SyncResp) Reset() {
- *x = SyncResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *SyncResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*SyncResp) ProtoMessage() {}
-
- func (x *SyncResp) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use SyncResp.ProtoReflect.Descriptor instead.
- func (*SyncResp) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{2}
- }
-
- func (x *SyncResp) GetMessages() []*Message {
- if x != nil {
- return x.Messages
- }
- return nil
- }
-
- func (x *SyncResp) GetHasMore() bool {
- if x != nil {
- return x.HasMore
- }
- return false
- }
-
- type MessageACKReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
- DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
- DeviceAck int64 `protobuf:"varint,3,opt,name=device_ack,json=deviceAck,proto3" json:"device_ack,omitempty"` // 设备收到消息的确认号
- ReceiveTime int64 `protobuf:"varint,4,opt,name=receive_time,json=receiveTime,proto3" json:"receive_time,omitempty"` // 消息接收时间戳,精确到毫秒
- }
-
- func (x *MessageACKReq) Reset() {
- *x = MessageACKReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *MessageACKReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*MessageACKReq) ProtoMessage() {}
-
- func (x *MessageACKReq) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use MessageACKReq.ProtoReflect.Descriptor instead.
- func (*MessageACKReq) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{3}
- }
-
- func (x *MessageACKReq) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
-
- func (x *MessageACKReq) GetDeviceId() int64 {
- if x != nil {
- return x.DeviceId
- }
- return 0
- }
-
- func (x *MessageACKReq) GetDeviceAck() int64 {
- if x != nil {
- return x.DeviceAck
- }
- return 0
- }
-
- func (x *MessageACKReq) GetReceiveTime() int64 {
- if x != nil {
- return x.ReceiveTime
- }
- return 0
- }
-
- type OfflineReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
- DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
- ClientAddr string `protobuf:"bytes,3,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` // 客户端地址
- }
-
- func (x *OfflineReq) Reset() {
- *x = OfflineReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *OfflineReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*OfflineReq) ProtoMessage() {}
-
- func (x *OfflineReq) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use OfflineReq.ProtoReflect.Descriptor instead.
- func (*OfflineReq) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{4}
- }
-
- func (x *OfflineReq) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
-
- func (x *OfflineReq) GetDeviceId() int64 {
- if x != nil {
- return x.DeviceId
- }
- return 0
- }
-
- func (x *OfflineReq) GetClientAddr() string {
- if x != nil {
- return x.ClientAddr
- }
- return ""
- }
-
- type SubscribeRoomReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
- DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
- RoomId int64 `protobuf:"varint,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // 房间id
- Seq int64 `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"` // 消息序列号
- ConnAddr string `protobuf:"bytes,5,opt,name=conn_addr,json=connAddr,proto3" json:"conn_addr,omitempty"` // 服务器地址
- }
-
- func (x *SubscribeRoomReq) Reset() {
- *x = SubscribeRoomReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *SubscribeRoomReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*SubscribeRoomReq) ProtoMessage() {}
-
- func (x *SubscribeRoomReq) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use SubscribeRoomReq.ProtoReflect.Descriptor instead.
- func (*SubscribeRoomReq) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{5}
- }
-
- func (x *SubscribeRoomReq) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
-
- func (x *SubscribeRoomReq) GetDeviceId() int64 {
- if x != nil {
- return x.DeviceId
- }
- return 0
- }
-
- func (x *SubscribeRoomReq) GetRoomId() int64 {
- if x != nil {
- return x.RoomId
- }
- return 0
- }
-
- func (x *SubscribeRoomReq) GetSeq() int64 {
- if x != nil {
- return x.Seq
- }
- return 0
- }
-
- func (x *SubscribeRoomReq) GetConnAddr() string {
- if x != nil {
- return x.ConnAddr
- }
- return ""
- }
-
- type PushAllReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- MessageType MessageType `protobuf:"varint,1,opt,name=message_type,json=messageType,proto3,enum=pb.MessageType" json:"message_type,omitempty"` // 消息类型
- MessageContent []byte `protobuf:"bytes,2,opt,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"` // 消息内容
- SendTime int64 `protobuf:"varint,3,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` // 消息发送时间戳,精确到毫秒
- }
-
- func (x *PushAllReq) Reset() {
- *x = PushAllReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *PushAllReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*PushAllReq) ProtoMessage() {}
-
- func (x *PushAllReq) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use PushAllReq.ProtoReflect.Descriptor instead.
- func (*PushAllReq) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{6}
- }
-
- func (x *PushAllReq) GetMessageType() MessageType {
- if x != nil {
- return x.MessageType
- }
- return MessageType_MT_UNKNOWN
- }
-
- func (x *PushAllReq) GetMessageContent() []byte {
- if x != nil {
- return x.MessageContent
- }
- return nil
- }
-
- func (x *PushAllReq) GetSendTime() int64 {
- if x != nil {
- return x.SendTime
- }
- return 0
- }
-
- type GetDeviceReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
- }
-
- func (x *GetDeviceReq) Reset() {
- *x = GetDeviceReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *GetDeviceReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*GetDeviceReq) ProtoMessage() {}
-
- func (x *GetDeviceReq) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use GetDeviceReq.ProtoReflect.Descriptor instead.
- func (*GetDeviceReq) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{7}
- }
-
- func (x *GetDeviceReq) GetDeviceId() int64 {
- if x != nil {
- return x.DeviceId
- }
- return 0
- }
-
- type GetDeviceResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
- }
-
- func (x *GetDeviceResp) Reset() {
- *x = GetDeviceResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *GetDeviceResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*GetDeviceResp) ProtoMessage() {}
-
- func (x *GetDeviceResp) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use GetDeviceResp.ProtoReflect.Descriptor instead.
- func (*GetDeviceResp) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{8}
- }
-
- func (x *GetDeviceResp) GetDevice() *Device {
- if x != nil {
- return x.Device
- }
- return nil
- }
-
- type Device struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
- UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
- Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // 设备类型,1:Android;2:IOS;3:Windows; 4:MacOS;5:Web
- Brand string `protobuf:"bytes,4,opt,name=brand,proto3" json:"brand,omitempty"` // 手机厂商
- Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"` // 机型
- SystemVersion string `protobuf:"bytes,6,opt,name=system_version,json=systemVersion,proto3" json:"system_version,omitempty"` // 系统版本
- SdkVersion string `protobuf:"bytes,7,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"` // SDK版本
- Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` // 在线状态,0:不在线;1:在线
- ConnAddr string `protobuf:"bytes,9,opt,name=conn_addr,json=connAddr,proto3" json:"conn_addr,omitempty"` // 服务端连接地址
- ClientAddr string `protobuf:"bytes,10,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` // 客户端地址
- CreateTime int64 `protobuf:"varint,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间
- UpdateTime int64 `protobuf:"varint,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间
- }
-
- func (x *Device) Reset() {
- *x = Device{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *Device) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*Device) ProtoMessage() {}
-
- func (x *Device) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[9]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use Device.ProtoReflect.Descriptor instead.
- func (*Device) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{9}
- }
-
- func (x *Device) GetDeviceId() int64 {
- if x != nil {
- return x.DeviceId
- }
- return 0
- }
-
- func (x *Device) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
-
- func (x *Device) GetType() int32 {
- if x != nil {
- return x.Type
- }
- return 0
- }
-
- func (x *Device) GetBrand() string {
- if x != nil {
- return x.Brand
- }
- return ""
- }
-
- func (x *Device) GetModel() string {
- if x != nil {
- return x.Model
- }
- return ""
- }
-
- func (x *Device) GetSystemVersion() string {
- if x != nil {
- return x.SystemVersion
- }
- return ""
- }
-
- func (x *Device) GetSdkVersion() string {
- if x != nil {
- return x.SdkVersion
- }
- return ""
- }
-
- func (x *Device) GetStatus() int32 {
- if x != nil {
- return x.Status
- }
- return 0
- }
-
- func (x *Device) GetConnAddr() string {
- if x != nil {
- return x.ConnAddr
- }
- return ""
- }
-
- func (x *Device) GetClientAddr() string {
- if x != nil {
- return x.ClientAddr
- }
- return ""
- }
-
- func (x *Device) GetCreateTime() int64 {
- if x != nil {
- return x.CreateTime
- }
- return 0
- }
-
- func (x *Device) GetUpdateTime() int64 {
- if x != nil {
- return x.UpdateTime
- }
- return 0
- }
-
- type ServerStopReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- ConnAddr string `protobuf:"bytes,1,opt,name=conn_addr,json=connAddr,proto3" json:"conn_addr,omitempty"`
- }
-
- func (x *ServerStopReq) Reset() {
- *x = ServerStopReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_logic_int_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
-
- func (x *ServerStopReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
-
- func (*ServerStopReq) ProtoMessage() {}
-
- func (x *ServerStopReq) ProtoReflect() protoreflect.Message {
- mi := &file_logic_int_proto_msgTypes[10]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
-
- // Deprecated: Use ServerStopReq.ProtoReflect.Descriptor instead.
- func (*ServerStopReq) Descriptor() ([]byte, []int) {
- return file_logic_int_proto_rawDescGZIP(), []int{10}
- }
-
- func (x *ServerStopReq) GetConnAddr() string {
- if x != nil {
- return x.ConnAddr
- }
- return ""
- }
-
- var File_logic_int_proto protoreflect.FileDescriptor
-
- var file_logic_int_proto_rawDesc = []byte{
- 0x0a, 0x0f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x2e, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x65, 0x78,
- 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
- 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x6c, 0x6f, 0x67, 0x69,
- 0x63, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x01, 0x0a, 0x0d,
- 0x43, 0x6f, 0x6e, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a,
- 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73,
- 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65,
- 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e,
- 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f,
- 0x6e, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
- 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69,
- 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x22, 0x51, 0x0a, 0x07, 0x53, 0x79, 0x6e, 0x63, 0x52,
- 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64,
- 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
- 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x22, 0x4e, 0x0a, 0x08, 0x53, 0x79,
- 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
- 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12,
- 0x19, 0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, 0x65, 0x22, 0x87, 0x01, 0x0a, 0x0d, 0x4d,
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x43, 0x4b, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07,
- 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75,
- 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f,
- 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
- 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x6b,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63,
- 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d,
- 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
- 0x54, 0x69, 0x6d, 0x65, 0x22, 0x63, 0x0a, 0x0a, 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x52,
- 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64,
- 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
- 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65,
- 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63,
- 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x22, 0x90, 0x01, 0x0a, 0x10, 0x53, 0x75,
- 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x17,
- 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63,
- 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69,
- 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x10, 0x0a,
- 0x03, 0x73, 0x65, 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12,
- 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x22, 0x86, 0x01, 0x0a,
- 0x0a, 0x50, 0x75, 0x73, 0x68, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x32, 0x0a, 0x0c, 0x6d,
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0e, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79,
- 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
- 0x27, 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65,
- 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
- 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64,
- 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e,
- 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x2b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69,
- 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f,
- 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
- 0x49, 0x64, 0x22, 0x33, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52,
- 0x65, 0x73, 0x70, 0x12, 0x22, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52,
- 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x22, 0xde, 0x02, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69,
- 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12,
- 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05,
- 0x62, 0x72, 0x61, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x72, 0x61,
- 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x79, 0x73, 0x74,
- 0x65, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
- 0x1f, 0x0a, 0x0b, 0x73, 0x64, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x64, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
- 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x6e,
- 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e,
- 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f,
- 0x61, 0x64, 0x64, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65,
- 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
- 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65,
- 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x2c, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76,
- 0x65, 0x72, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e,
- 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f,
- 0x6e, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x32, 0xc1, 0x03, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x69, 0x63,
- 0x49, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x49,
- 0x6e, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x49,
- 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12,
- 0x21, 0x0a, 0x04, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x79, 0x6e,
- 0x63, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65,
- 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x43, 0x4b,
- 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x43, 0x4b,
- 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x24,
- 0x0a, 0x07, 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4f,
- 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45,
- 0x6d, 0x70, 0x74, 0x79, 0x12, 0x30, 0x0a, 0x0d, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
- 0x65, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63,
- 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62,
- 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x36, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d,
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x53,
- 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x26,
- 0x0a, 0x08, 0x50, 0x75, 0x73, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x2e,
- 0x50, 0x75, 0x73, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62,
- 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x24, 0x0a, 0x07, 0x50, 0x75, 0x73, 0x68, 0x41, 0x6c,
- 0x6c, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x41, 0x6c, 0x6c, 0x52, 0x65,
- 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x30, 0x0a, 0x09,
- 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x47,
- 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x62,
- 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a,
- 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x11, 0x2e, 0x70,
- 0x62, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a,
- 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69,
- 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x33,
- }
-
- var (
- file_logic_int_proto_rawDescOnce sync.Once
- file_logic_int_proto_rawDescData = file_logic_int_proto_rawDesc
- )
-
- func file_logic_int_proto_rawDescGZIP() []byte {
- file_logic_int_proto_rawDescOnce.Do(func() {
- file_logic_int_proto_rawDescData = protoimpl.X.CompressGZIP(file_logic_int_proto_rawDescData)
- })
- return file_logic_int_proto_rawDescData
- }
-
- var file_logic_int_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
- var file_logic_int_proto_goTypes = []interface{}{
- (*ConnSignInReq)(nil), // 0: pb.ConnSignInReq
- (*SyncReq)(nil), // 1: pb.SyncReq
- (*SyncResp)(nil), // 2: pb.SyncResp
- (*MessageACKReq)(nil), // 3: pb.MessageACKReq
- (*OfflineReq)(nil), // 4: pb.OfflineReq
- (*SubscribeRoomReq)(nil), // 5: pb.SubscribeRoomReq
- (*PushAllReq)(nil), // 6: pb.PushAllReq
- (*GetDeviceReq)(nil), // 7: pb.GetDeviceReq
- (*GetDeviceResp)(nil), // 8: pb.GetDeviceResp
- (*Device)(nil), // 9: pb.Device
- (*ServerStopReq)(nil), // 10: pb.ServerStopReq
- (*Message)(nil), // 11: pb.Message
- (MessageType)(0), // 12: pb.MessageType
- (*SendMessageReq)(nil), // 13: pb.SendMessageReq
- (*PushRoomReq)(nil), // 14: pb.PushRoomReq
- (*Empty)(nil), // 15: pb.Empty
- (*SendMessageResp)(nil), // 16: pb.SendMessageResp
- }
- var file_logic_int_proto_depIdxs = []int32{
- 11, // 0: pb.SyncResp.messages:type_name -> pb.Message
- 12, // 1: pb.PushAllReq.message_type:type_name -> pb.MessageType
- 9, // 2: pb.GetDeviceResp.device:type_name -> pb.Device
- 0, // 3: pb.LogicInt.ConnSignIn:input_type -> pb.ConnSignInReq
- 1, // 4: pb.LogicInt.Sync:input_type -> pb.SyncReq
- 3, // 5: pb.LogicInt.MessageACK:input_type -> pb.MessageACKReq
- 4, // 6: pb.LogicInt.Offline:input_type -> pb.OfflineReq
- 5, // 7: pb.LogicInt.SubscribeRoom:input_type -> pb.SubscribeRoomReq
- 13, // 8: pb.LogicInt.SendMessage:input_type -> pb.SendMessageReq
- 14, // 9: pb.LogicInt.PushRoom:input_type -> pb.PushRoomReq
- 6, // 10: pb.LogicInt.PushAll:input_type -> pb.PushAllReq
- 7, // 11: pb.LogicInt.GetDevice:input_type -> pb.GetDeviceReq
- 10, // 12: pb.LogicInt.ServerStop:input_type -> pb.ServerStopReq
- 15, // 13: pb.LogicInt.ConnSignIn:output_type -> pb.Empty
- 2, // 14: pb.LogicInt.Sync:output_type -> pb.SyncResp
- 15, // 15: pb.LogicInt.MessageACK:output_type -> pb.Empty
- 15, // 16: pb.LogicInt.Offline:output_type -> pb.Empty
- 15, // 17: pb.LogicInt.SubscribeRoom:output_type -> pb.Empty
- 16, // 18: pb.LogicInt.SendMessage:output_type -> pb.SendMessageResp
- 15, // 19: pb.LogicInt.PushRoom:output_type -> pb.Empty
- 15, // 20: pb.LogicInt.PushAll:output_type -> pb.Empty
- 8, // 21: pb.LogicInt.GetDevice:output_type -> pb.GetDeviceResp
- 15, // 22: pb.LogicInt.ServerStop:output_type -> pb.Empty
- 13, // [13:23] is the sub-list for method output_type
- 3, // [3:13] is the sub-list for method input_type
- 3, // [3:3] is the sub-list for extension type_name
- 3, // [3:3] is the sub-list for extension extendee
- 0, // [0:3] is the sub-list for field type_name
- }
-
- func init() { file_logic_int_proto_init() }
- func file_logic_int_proto_init() {
- if File_logic_int_proto != nil {
- return
- }
- file_common_ext_proto_init()
- file_connect_ext_proto_init()
- file_logic_ext_proto_init()
- if !protoimpl.UnsafeEnabled {
- file_logic_int_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ConnSignInReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SyncReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SyncResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*MessageACKReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*OfflineReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SubscribeRoomReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PushAllReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetDeviceReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetDeviceResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Device); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_logic_int_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ServerStopReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_logic_int_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 11,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_logic_int_proto_goTypes,
- DependencyIndexes: file_logic_int_proto_depIdxs,
- MessageInfos: file_logic_int_proto_msgTypes,
- }.Build()
- File_logic_int_proto = out.File
- file_logic_int_proto_rawDesc = nil
- file_logic_int_proto_goTypes = nil
- file_logic_int_proto_depIdxs = nil
- }
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
-
- // LogicIntClient is the client API for LogicInt service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type LogicIntClient interface {
- // 登录
- ConnSignIn(ctx context.Context, in *ConnSignInReq, opts ...grpc.CallOption) (*Empty, error)
- // 消息同步
- Sync(ctx context.Context, in *SyncReq, opts ...grpc.CallOption) (*SyncResp, error)
- // 设备收到消息回执
- MessageACK(ctx context.Context, in *MessageACKReq, opts ...grpc.CallOption) (*Empty, error)
- // 设备离线
- Offline(ctx context.Context, in *OfflineReq, opts ...grpc.CallOption) (*Empty, error)
- // 订阅房间
- SubscribeRoom(ctx context.Context, in *SubscribeRoomReq, opts ...grpc.CallOption) (*Empty, error)
- // 发送消息
- SendMessage(ctx context.Context, in *SendMessageReq, opts ...grpc.CallOption) (*SendMessageResp, error)
- // 推送消息到房间
- PushRoom(ctx context.Context, in *PushRoomReq, opts ...grpc.CallOption) (*Empty, error)
- // 全服推送
- PushAll(ctx context.Context, in *PushAllReq, opts ...grpc.CallOption) (*Empty, error)
- // 获取设备信息
- GetDevice(ctx context.Context, in *GetDeviceReq, opts ...grpc.CallOption) (*GetDeviceResp, error)
- // 服务停止
- ServerStop(ctx context.Context, in *ServerStopReq, opts ...grpc.CallOption) (*Empty, error)
- }
-
- type logicIntClient struct {
- cc grpc.ClientConnInterface
- }
-
- func NewLogicIntClient(cc grpc.ClientConnInterface) LogicIntClient {
- return &logicIntClient{cc}
- }
-
- func (c *logicIntClient) ConnSignIn(ctx context.Context, in *ConnSignInReq, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/ConnSignIn", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *logicIntClient) Sync(ctx context.Context, in *SyncReq, opts ...grpc.CallOption) (*SyncResp, error) {
- out := new(SyncResp)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/Sync", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *logicIntClient) MessageACK(ctx context.Context, in *MessageACKReq, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/MessageACK", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *logicIntClient) Offline(ctx context.Context, in *OfflineReq, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/Offline", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *logicIntClient) SubscribeRoom(ctx context.Context, in *SubscribeRoomReq, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/SubscribeRoom", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *logicIntClient) SendMessage(ctx context.Context, in *SendMessageReq, opts ...grpc.CallOption) (*SendMessageResp, error) {
- out := new(SendMessageResp)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/SendMessage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *logicIntClient) PushRoom(ctx context.Context, in *PushRoomReq, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/PushRoom", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *logicIntClient) PushAll(ctx context.Context, in *PushAllReq, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/PushAll", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *logicIntClient) GetDevice(ctx context.Context, in *GetDeviceReq, opts ...grpc.CallOption) (*GetDeviceResp, error) {
- out := new(GetDeviceResp)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/GetDevice", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- func (c *logicIntClient) ServerStop(ctx context.Context, in *ServerStopReq, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, "/pb.LogicInt/ServerStop", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
-
- // LogicIntServer is the server API for LogicInt service.
- type LogicIntServer interface {
- // 登录
- ConnSignIn(context.Context, *ConnSignInReq) (*Empty, error)
- // 消息同步
- Sync(context.Context, *SyncReq) (*SyncResp, error)
- // 设备收到消息回执
- MessageACK(context.Context, *MessageACKReq) (*Empty, error)
- // 设备离线
- Offline(context.Context, *OfflineReq) (*Empty, error)
- // 订阅房间
- SubscribeRoom(context.Context, *SubscribeRoomReq) (*Empty, error)
- // 发送消息
- SendMessage(context.Context, *SendMessageReq) (*SendMessageResp, error)
- // 推送消息到房间
- PushRoom(context.Context, *PushRoomReq) (*Empty, error)
- // 全服推送
- PushAll(context.Context, *PushAllReq) (*Empty, error)
- // 获取设备信息
- GetDevice(context.Context, *GetDeviceReq) (*GetDeviceResp, error)
- // 服务停止
- ServerStop(context.Context, *ServerStopReq) (*Empty, error)
- }
-
- // UnimplementedLogicIntServer can be embedded to have forward compatible implementations.
- type UnimplementedLogicIntServer struct {
- }
-
- func (*UnimplementedLogicIntServer) ConnSignIn(context.Context, *ConnSignInReq) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ConnSignIn not implemented")
- }
- func (*UnimplementedLogicIntServer) Sync(context.Context, *SyncReq) (*SyncResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Sync not implemented")
- }
- func (*UnimplementedLogicIntServer) MessageACK(context.Context, *MessageACKReq) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MessageACK not implemented")
- }
- func (*UnimplementedLogicIntServer) Offline(context.Context, *OfflineReq) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Offline not implemented")
- }
- func (*UnimplementedLogicIntServer) SubscribeRoom(context.Context, *SubscribeRoomReq) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SubscribeRoom not implemented")
- }
- func (*UnimplementedLogicIntServer) SendMessage(context.Context, *SendMessageReq) (*SendMessageResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SendMessage not implemented")
- }
- func (*UnimplementedLogicIntServer) PushRoom(context.Context, *PushRoomReq) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PushRoom not implemented")
- }
- func (*UnimplementedLogicIntServer) PushAll(context.Context, *PushAllReq) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PushAll not implemented")
- }
- func (*UnimplementedLogicIntServer) GetDevice(context.Context, *GetDeviceReq) (*GetDeviceResp, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetDevice not implemented")
- }
- func (*UnimplementedLogicIntServer) ServerStop(context.Context, *ServerStopReq) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ServerStop not implemented")
- }
-
- func RegisterLogicIntServer(s *grpc.Server, srv LogicIntServer) {
- s.RegisterService(&_LogicInt_serviceDesc, srv)
- }
-
- func _LogicInt_ConnSignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ConnSignInReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).ConnSignIn(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/ConnSignIn",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).ConnSignIn(ctx, req.(*ConnSignInReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _LogicInt_Sync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SyncReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).Sync(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/Sync",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).Sync(ctx, req.(*SyncReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _LogicInt_MessageACK_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(MessageACKReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).MessageACK(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/MessageACK",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).MessageACK(ctx, req.(*MessageACKReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _LogicInt_Offline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(OfflineReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).Offline(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/Offline",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).Offline(ctx, req.(*OfflineReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _LogicInt_SubscribeRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SubscribeRoomReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).SubscribeRoom(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/SubscribeRoom",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).SubscribeRoom(ctx, req.(*SubscribeRoomReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _LogicInt_SendMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SendMessageReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).SendMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/SendMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).SendMessage(ctx, req.(*SendMessageReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _LogicInt_PushRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PushRoomReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).PushRoom(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/PushRoom",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).PushRoom(ctx, req.(*PushRoomReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _LogicInt_PushAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PushAllReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).PushAll(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/PushAll",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).PushAll(ctx, req.(*PushAllReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _LogicInt_GetDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetDeviceReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).GetDevice(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/GetDevice",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).GetDevice(ctx, req.(*GetDeviceReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- func _LogicInt_ServerStop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ServerStopReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LogicIntServer).ServerStop(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.LogicInt/ServerStop",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LogicIntServer).ServerStop(ctx, req.(*ServerStopReq))
- }
- return interceptor(ctx, in, info, handler)
- }
-
- var _LogicInt_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.LogicInt",
- HandlerType: (*LogicIntServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "ConnSignIn",
- Handler: _LogicInt_ConnSignIn_Handler,
- },
- {
- MethodName: "Sync",
- Handler: _LogicInt_Sync_Handler,
- },
- {
- MethodName: "MessageACK",
- Handler: _LogicInt_MessageACK_Handler,
- },
- {
- MethodName: "Offline",
- Handler: _LogicInt_Offline_Handler,
- },
- {
- MethodName: "SubscribeRoom",
- Handler: _LogicInt_SubscribeRoom_Handler,
- },
- {
- MethodName: "SendMessage",
- Handler: _LogicInt_SendMessage_Handler,
- },
- {
- MethodName: "PushRoom",
- Handler: _LogicInt_PushRoom_Handler,
- },
- {
- MethodName: "PushAll",
- Handler: _LogicInt_PushAll_Handler,
- },
- {
- MethodName: "GetDevice",
- Handler: _LogicInt_GetDevice_Handler,
- },
- {
- MethodName: "ServerStop",
- Handler: _LogicInt_ServerStop_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "logic.int.proto",
- }
|