|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.26.0
- // protoc v3.14.0
- // source: logic.int.proto_back
-
- 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_back",
- }
|