websocket_grpc.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package websocket
  3. import (
  4. context "context"
  5. grpc "google.golang.org/grpc"
  6. codes "google.golang.org/grpc/codes"
  7. status "google.golang.org/grpc/status"
  8. emptypb "google.golang.org/protobuf/types/known/emptypb"
  9. )
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the grpc package it is being compiled against.
  12. // Requires gRPC-Go v1.32.0 or later.
  13. const _ = grpc.SupportPackageIsVersion7
  14. // WebsocketClient is the client API for Websocket service.
  15. //
  16. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  17. type WebsocketClient interface {
  18. // 查询在线人数
  19. FindOnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlinePersonReply, error)
  20. // 查询在线人数
  21. FindOnlinePersonAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlinePersonReply, error)
  22. // 查询在线人数
  23. FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlineCanMatchingPersonReply, error)
  24. // 发送消息
  25. SendMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*SendMsgReply, error)
  26. // 更新工作状态
  27. UpdateWorkingStatus(ctx context.Context, in *UpdateWorkingStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  28. // 更新权重
  29. UpdateWeight(ctx context.Context, in *UpdateWeightRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  30. // 更新每日被匹配数
  31. UpdateTodayMatchedNum(ctx context.Context, in *UpdateTodayMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  32. // 检查是否在线
  33. CheckIsOnline(ctx context.Context, in *CheckIsOnlineRequest, opts ...grpc.CallOption) (*CheckIsOnlineReply, error)
  34. // 检查是否在线
  35. CheckIsOnlineByIDs(ctx context.Context, in *CheckIsOnlineByIDsParam, opts ...grpc.CallOption) (*CheckIsOnlineByIDsParam, error)
  36. // 查询在线多少人
  37. FindOnlinePersonNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error)
  38. // 定时检查在线超过一小时的用户并将其下线
  39. CronCheckConnectTime(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  40. }
  41. type websocketClient struct {
  42. cc grpc.ClientConnInterface
  43. }
  44. func NewWebsocketClient(cc grpc.ClientConnInterface) WebsocketClient {
  45. return &websocketClient{cc}
  46. }
  47. func (c *websocketClient) FindOnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlinePersonReply, error) {
  48. out := new(FindOnlinePersonReply)
  49. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/FindOnlinePerson", in, out, opts...)
  50. if err != nil {
  51. return nil, err
  52. }
  53. return out, nil
  54. }
  55. func (c *websocketClient) FindOnlinePersonAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlinePersonReply, error) {
  56. out := new(FindOnlinePersonReply)
  57. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/FindOnlinePersonAll", in, out, opts...)
  58. if err != nil {
  59. return nil, err
  60. }
  61. return out, nil
  62. }
  63. func (c *websocketClient) FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlineCanMatchingPersonReply, error) {
  64. out := new(FindOnlineCanMatchingPersonReply)
  65. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/FindOnlineCanMatchingPerson", in, out, opts...)
  66. if err != nil {
  67. return nil, err
  68. }
  69. return out, nil
  70. }
  71. func (c *websocketClient) SendMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*SendMsgReply, error) {
  72. out := new(SendMsgReply)
  73. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/SendMsg", in, out, opts...)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return out, nil
  78. }
  79. func (c *websocketClient) UpdateWorkingStatus(ctx context.Context, in *UpdateWorkingStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  80. out := new(emptypb.Empty)
  81. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/UpdateWorkingStatus", in, out, opts...)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return out, nil
  86. }
  87. func (c *websocketClient) UpdateWeight(ctx context.Context, in *UpdateWeightRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  88. out := new(emptypb.Empty)
  89. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/UpdateWeight", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *websocketClient) UpdateTodayMatchedNum(ctx context.Context, in *UpdateTodayMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  96. out := new(emptypb.Empty)
  97. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/UpdateTodayMatchedNum", in, out, opts...)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return out, nil
  102. }
  103. func (c *websocketClient) CheckIsOnline(ctx context.Context, in *CheckIsOnlineRequest, opts ...grpc.CallOption) (*CheckIsOnlineReply, error) {
  104. out := new(CheckIsOnlineReply)
  105. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/CheckIsOnline", in, out, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return out, nil
  110. }
  111. func (c *websocketClient) CheckIsOnlineByIDs(ctx context.Context, in *CheckIsOnlineByIDsParam, opts ...grpc.CallOption) (*CheckIsOnlineByIDsParam, error) {
  112. out := new(CheckIsOnlineByIDsParam)
  113. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/CheckIsOnlineByIDs", in, out, opts...)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return out, nil
  118. }
  119. func (c *websocketClient) FindOnlinePersonNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error) {
  120. out := new(OnlinePersonReply)
  121. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/FindOnlinePersonNum", in, out, opts...)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return out, nil
  126. }
  127. func (c *websocketClient) CronCheckConnectTime(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  128. out := new(emptypb.Empty)
  129. err := c.cc.Invoke(ctx, "/api.websocket.Websocket/CronCheckConnectTime", in, out, opts...)
  130. if err != nil {
  131. return nil, err
  132. }
  133. return out, nil
  134. }
  135. // WebsocketServer is the server API for Websocket service.
  136. // All implementations must embed UnimplementedWebsocketServer
  137. // for forward compatibility
  138. type WebsocketServer interface {
  139. // 查询在线人数
  140. FindOnlinePerson(context.Context, *emptypb.Empty) (*FindOnlinePersonReply, error)
  141. // 查询在线人数
  142. FindOnlinePersonAll(context.Context, *emptypb.Empty) (*FindOnlinePersonReply, error)
  143. // 查询在线人数
  144. FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*FindOnlineCanMatchingPersonReply, error)
  145. // 发送消息
  146. SendMsg(context.Context, *SendMsgRequest) (*SendMsgReply, error)
  147. // 更新工作状态
  148. UpdateWorkingStatus(context.Context, *UpdateWorkingStatusRequest) (*emptypb.Empty, error)
  149. // 更新权重
  150. UpdateWeight(context.Context, *UpdateWeightRequest) (*emptypb.Empty, error)
  151. // 更新每日被匹配数
  152. UpdateTodayMatchedNum(context.Context, *UpdateTodayMatchedNumRequest) (*emptypb.Empty, error)
  153. // 检查是否在线
  154. CheckIsOnline(context.Context, *CheckIsOnlineRequest) (*CheckIsOnlineReply, error)
  155. // 检查是否在线
  156. CheckIsOnlineByIDs(context.Context, *CheckIsOnlineByIDsParam) (*CheckIsOnlineByIDsParam, error)
  157. // 查询在线多少人
  158. FindOnlinePersonNum(context.Context, *emptypb.Empty) (*OnlinePersonReply, error)
  159. // 定时检查在线超过一小时的用户并将其下线
  160. CronCheckConnectTime(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  161. mustEmbedUnimplementedWebsocketServer()
  162. }
  163. // UnimplementedWebsocketServer must be embedded to have forward compatible implementations.
  164. type UnimplementedWebsocketServer struct {
  165. }
  166. func (UnimplementedWebsocketServer) FindOnlinePerson(context.Context, *emptypb.Empty) (*FindOnlinePersonReply, error) {
  167. return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePerson not implemented")
  168. }
  169. func (UnimplementedWebsocketServer) FindOnlinePersonAll(context.Context, *emptypb.Empty) (*FindOnlinePersonReply, error) {
  170. return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePersonAll not implemented")
  171. }
  172. func (UnimplementedWebsocketServer) FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*FindOnlineCanMatchingPersonReply, error) {
  173. return nil, status.Errorf(codes.Unimplemented, "method FindOnlineCanMatchingPerson not implemented")
  174. }
  175. func (UnimplementedWebsocketServer) SendMsg(context.Context, *SendMsgRequest) (*SendMsgReply, error) {
  176. return nil, status.Errorf(codes.Unimplemented, "method SendMsg not implemented")
  177. }
  178. func (UnimplementedWebsocketServer) UpdateWorkingStatus(context.Context, *UpdateWorkingStatusRequest) (*emptypb.Empty, error) {
  179. return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkingStatus not implemented")
  180. }
  181. func (UnimplementedWebsocketServer) UpdateWeight(context.Context, *UpdateWeightRequest) (*emptypb.Empty, error) {
  182. return nil, status.Errorf(codes.Unimplemented, "method UpdateWeight not implemented")
  183. }
  184. func (UnimplementedWebsocketServer) UpdateTodayMatchedNum(context.Context, *UpdateTodayMatchedNumRequest) (*emptypb.Empty, error) {
  185. return nil, status.Errorf(codes.Unimplemented, "method UpdateTodayMatchedNum not implemented")
  186. }
  187. func (UnimplementedWebsocketServer) CheckIsOnline(context.Context, *CheckIsOnlineRequest) (*CheckIsOnlineReply, error) {
  188. return nil, status.Errorf(codes.Unimplemented, "method CheckIsOnline not implemented")
  189. }
  190. func (UnimplementedWebsocketServer) CheckIsOnlineByIDs(context.Context, *CheckIsOnlineByIDsParam) (*CheckIsOnlineByIDsParam, error) {
  191. return nil, status.Errorf(codes.Unimplemented, "method CheckIsOnlineByIDs not implemented")
  192. }
  193. func (UnimplementedWebsocketServer) FindOnlinePersonNum(context.Context, *emptypb.Empty) (*OnlinePersonReply, error) {
  194. return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePersonNum not implemented")
  195. }
  196. func (UnimplementedWebsocketServer) CronCheckConnectTime(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  197. return nil, status.Errorf(codes.Unimplemented, "method CronCheckConnectTime not implemented")
  198. }
  199. func (UnimplementedWebsocketServer) mustEmbedUnimplementedWebsocketServer() {}
  200. // UnsafeWebsocketServer may be embedded to opt out of forward compatibility for this service.
  201. // Use of this interface is not recommended, as added methods to WebsocketServer will
  202. // result in compilation errors.
  203. type UnsafeWebsocketServer interface {
  204. mustEmbedUnimplementedWebsocketServer()
  205. }
  206. func RegisterWebsocketServer(s grpc.ServiceRegistrar, srv WebsocketServer) {
  207. s.RegisterService(&Websocket_ServiceDesc, srv)
  208. }
  209. func _Websocket_FindOnlinePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  210. in := new(emptypb.Empty)
  211. if err := dec(in); err != nil {
  212. return nil, err
  213. }
  214. if interceptor == nil {
  215. return srv.(WebsocketServer).FindOnlinePerson(ctx, in)
  216. }
  217. info := &grpc.UnaryServerInfo{
  218. Server: srv,
  219. FullMethod: "/api.websocket.Websocket/FindOnlinePerson",
  220. }
  221. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  222. return srv.(WebsocketServer).FindOnlinePerson(ctx, req.(*emptypb.Empty))
  223. }
  224. return interceptor(ctx, in, info, handler)
  225. }
  226. func _Websocket_FindOnlinePersonAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  227. in := new(emptypb.Empty)
  228. if err := dec(in); err != nil {
  229. return nil, err
  230. }
  231. if interceptor == nil {
  232. return srv.(WebsocketServer).FindOnlinePersonAll(ctx, in)
  233. }
  234. info := &grpc.UnaryServerInfo{
  235. Server: srv,
  236. FullMethod: "/api.websocket.Websocket/FindOnlinePersonAll",
  237. }
  238. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  239. return srv.(WebsocketServer).FindOnlinePersonAll(ctx, req.(*emptypb.Empty))
  240. }
  241. return interceptor(ctx, in, info, handler)
  242. }
  243. func _Websocket_FindOnlineCanMatchingPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  244. in := new(emptypb.Empty)
  245. if err := dec(in); err != nil {
  246. return nil, err
  247. }
  248. if interceptor == nil {
  249. return srv.(WebsocketServer).FindOnlineCanMatchingPerson(ctx, in)
  250. }
  251. info := &grpc.UnaryServerInfo{
  252. Server: srv,
  253. FullMethod: "/api.websocket.Websocket/FindOnlineCanMatchingPerson",
  254. }
  255. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  256. return srv.(WebsocketServer).FindOnlineCanMatchingPerson(ctx, req.(*emptypb.Empty))
  257. }
  258. return interceptor(ctx, in, info, handler)
  259. }
  260. func _Websocket_SendMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  261. in := new(SendMsgRequest)
  262. if err := dec(in); err != nil {
  263. return nil, err
  264. }
  265. if interceptor == nil {
  266. return srv.(WebsocketServer).SendMsg(ctx, in)
  267. }
  268. info := &grpc.UnaryServerInfo{
  269. Server: srv,
  270. FullMethod: "/api.websocket.Websocket/SendMsg",
  271. }
  272. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  273. return srv.(WebsocketServer).SendMsg(ctx, req.(*SendMsgRequest))
  274. }
  275. return interceptor(ctx, in, info, handler)
  276. }
  277. func _Websocket_UpdateWorkingStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  278. in := new(UpdateWorkingStatusRequest)
  279. if err := dec(in); err != nil {
  280. return nil, err
  281. }
  282. if interceptor == nil {
  283. return srv.(WebsocketServer).UpdateWorkingStatus(ctx, in)
  284. }
  285. info := &grpc.UnaryServerInfo{
  286. Server: srv,
  287. FullMethod: "/api.websocket.Websocket/UpdateWorkingStatus",
  288. }
  289. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  290. return srv.(WebsocketServer).UpdateWorkingStatus(ctx, req.(*UpdateWorkingStatusRequest))
  291. }
  292. return interceptor(ctx, in, info, handler)
  293. }
  294. func _Websocket_UpdateWeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  295. in := new(UpdateWeightRequest)
  296. if err := dec(in); err != nil {
  297. return nil, err
  298. }
  299. if interceptor == nil {
  300. return srv.(WebsocketServer).UpdateWeight(ctx, in)
  301. }
  302. info := &grpc.UnaryServerInfo{
  303. Server: srv,
  304. FullMethod: "/api.websocket.Websocket/UpdateWeight",
  305. }
  306. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  307. return srv.(WebsocketServer).UpdateWeight(ctx, req.(*UpdateWeightRequest))
  308. }
  309. return interceptor(ctx, in, info, handler)
  310. }
  311. func _Websocket_UpdateTodayMatchedNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  312. in := new(UpdateTodayMatchedNumRequest)
  313. if err := dec(in); err != nil {
  314. return nil, err
  315. }
  316. if interceptor == nil {
  317. return srv.(WebsocketServer).UpdateTodayMatchedNum(ctx, in)
  318. }
  319. info := &grpc.UnaryServerInfo{
  320. Server: srv,
  321. FullMethod: "/api.websocket.Websocket/UpdateTodayMatchedNum",
  322. }
  323. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  324. return srv.(WebsocketServer).UpdateTodayMatchedNum(ctx, req.(*UpdateTodayMatchedNumRequest))
  325. }
  326. return interceptor(ctx, in, info, handler)
  327. }
  328. func _Websocket_CheckIsOnline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  329. in := new(CheckIsOnlineRequest)
  330. if err := dec(in); err != nil {
  331. return nil, err
  332. }
  333. if interceptor == nil {
  334. return srv.(WebsocketServer).CheckIsOnline(ctx, in)
  335. }
  336. info := &grpc.UnaryServerInfo{
  337. Server: srv,
  338. FullMethod: "/api.websocket.Websocket/CheckIsOnline",
  339. }
  340. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  341. return srv.(WebsocketServer).CheckIsOnline(ctx, req.(*CheckIsOnlineRequest))
  342. }
  343. return interceptor(ctx, in, info, handler)
  344. }
  345. func _Websocket_CheckIsOnlineByIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  346. in := new(CheckIsOnlineByIDsParam)
  347. if err := dec(in); err != nil {
  348. return nil, err
  349. }
  350. if interceptor == nil {
  351. return srv.(WebsocketServer).CheckIsOnlineByIDs(ctx, in)
  352. }
  353. info := &grpc.UnaryServerInfo{
  354. Server: srv,
  355. FullMethod: "/api.websocket.Websocket/CheckIsOnlineByIDs",
  356. }
  357. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  358. return srv.(WebsocketServer).CheckIsOnlineByIDs(ctx, req.(*CheckIsOnlineByIDsParam))
  359. }
  360. return interceptor(ctx, in, info, handler)
  361. }
  362. func _Websocket_FindOnlinePersonNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  363. in := new(emptypb.Empty)
  364. if err := dec(in); err != nil {
  365. return nil, err
  366. }
  367. if interceptor == nil {
  368. return srv.(WebsocketServer).FindOnlinePersonNum(ctx, in)
  369. }
  370. info := &grpc.UnaryServerInfo{
  371. Server: srv,
  372. FullMethod: "/api.websocket.Websocket/FindOnlinePersonNum",
  373. }
  374. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  375. return srv.(WebsocketServer).FindOnlinePersonNum(ctx, req.(*emptypb.Empty))
  376. }
  377. return interceptor(ctx, in, info, handler)
  378. }
  379. func _Websocket_CronCheckConnectTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  380. in := new(emptypb.Empty)
  381. if err := dec(in); err != nil {
  382. return nil, err
  383. }
  384. if interceptor == nil {
  385. return srv.(WebsocketServer).CronCheckConnectTime(ctx, in)
  386. }
  387. info := &grpc.UnaryServerInfo{
  388. Server: srv,
  389. FullMethod: "/api.websocket.Websocket/CronCheckConnectTime",
  390. }
  391. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  392. return srv.(WebsocketServer).CronCheckConnectTime(ctx, req.(*emptypb.Empty))
  393. }
  394. return interceptor(ctx, in, info, handler)
  395. }
  396. // Websocket_ServiceDesc is the grpc.ServiceDesc for Websocket service.
  397. // It's only intended for direct use with grpc.RegisterService,
  398. // and not to be introspected or modified (even as a copy)
  399. var Websocket_ServiceDesc = grpc.ServiceDesc{
  400. ServiceName: "api.websocket.Websocket",
  401. HandlerType: (*WebsocketServer)(nil),
  402. Methods: []grpc.MethodDesc{
  403. {
  404. MethodName: "FindOnlinePerson",
  405. Handler: _Websocket_FindOnlinePerson_Handler,
  406. },
  407. {
  408. MethodName: "FindOnlinePersonAll",
  409. Handler: _Websocket_FindOnlinePersonAll_Handler,
  410. },
  411. {
  412. MethodName: "FindOnlineCanMatchingPerson",
  413. Handler: _Websocket_FindOnlineCanMatchingPerson_Handler,
  414. },
  415. {
  416. MethodName: "SendMsg",
  417. Handler: _Websocket_SendMsg_Handler,
  418. },
  419. {
  420. MethodName: "UpdateWorkingStatus",
  421. Handler: _Websocket_UpdateWorkingStatus_Handler,
  422. },
  423. {
  424. MethodName: "UpdateWeight",
  425. Handler: _Websocket_UpdateWeight_Handler,
  426. },
  427. {
  428. MethodName: "UpdateTodayMatchedNum",
  429. Handler: _Websocket_UpdateTodayMatchedNum_Handler,
  430. },
  431. {
  432. MethodName: "CheckIsOnline",
  433. Handler: _Websocket_CheckIsOnline_Handler,
  434. },
  435. {
  436. MethodName: "CheckIsOnlineByIDs",
  437. Handler: _Websocket_CheckIsOnlineByIDs_Handler,
  438. },
  439. {
  440. MethodName: "FindOnlinePersonNum",
  441. Handler: _Websocket_FindOnlinePersonNum_Handler,
  442. },
  443. {
  444. MethodName: "CronCheckConnectTime",
  445. Handler: _Websocket_CronCheckConnectTime_Handler,
  446. },
  447. },
  448. Streams: []grpc.StreamDesc{},
  449. Metadata: "websocket.proto",
  450. }