inner_grpc.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.19.4
  5. // source: pb/inner.proto
  6. package pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // InnerClient is the client API for Inner service.
  18. //
  19. // 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.
  20. type InnerClient interface {
  21. PlayerFetchCsInfo(ctx context.Context, in *InnerPlayerFetchCsInfoReq, opts ...grpc.CallOption) (*InnerPlayerFetchCsInfoResp, error)
  22. PlayerDisconnect(ctx context.Context, in *InnerPlayerDisconnectReq, opts ...grpc.CallOption) (*InnerPlayerDisconnectResp, error)
  23. CsFetchPlayerQueue(ctx context.Context, in *InnerCsFetchPlayerQueueReq, opts ...grpc.CallOption) (*InnerCsFetchPlayerQueueResp, error)
  24. CsConnectPlayer(ctx context.Context, in *InnerCsConnectPlayerReq, opts ...grpc.CallOption) (*InnerCsConnectPlayerResp, error)
  25. NotifyUserOnline(ctx context.Context, in *NotifyUserStatusReq, opts ...grpc.CallOption) (*NotifyUserStatusResp, error)
  26. NotifyUserOffline(ctx context.Context, in *NotifyUserStatusReq, opts ...grpc.CallOption) (*NotifyUserStatusResp, error)
  27. }
  28. type innerClient struct {
  29. cc grpc.ClientConnInterface
  30. }
  31. func NewInnerClient(cc grpc.ClientConnInterface) InnerClient {
  32. return &innerClient{cc}
  33. }
  34. func (c *innerClient) PlayerFetchCsInfo(ctx context.Context, in *InnerPlayerFetchCsInfoReq, opts ...grpc.CallOption) (*InnerPlayerFetchCsInfoResp, error) {
  35. out := new(InnerPlayerFetchCsInfoResp)
  36. err := c.cc.Invoke(ctx, "/pb.Inner/playerFetchCsInfo", in, out, opts...)
  37. if err != nil {
  38. return nil, err
  39. }
  40. return out, nil
  41. }
  42. func (c *innerClient) PlayerDisconnect(ctx context.Context, in *InnerPlayerDisconnectReq, opts ...grpc.CallOption) (*InnerPlayerDisconnectResp, error) {
  43. out := new(InnerPlayerDisconnectResp)
  44. err := c.cc.Invoke(ctx, "/pb.Inner/playerDisconnect", in, out, opts...)
  45. if err != nil {
  46. return nil, err
  47. }
  48. return out, nil
  49. }
  50. func (c *innerClient) CsFetchPlayerQueue(ctx context.Context, in *InnerCsFetchPlayerQueueReq, opts ...grpc.CallOption) (*InnerCsFetchPlayerQueueResp, error) {
  51. out := new(InnerCsFetchPlayerQueueResp)
  52. err := c.cc.Invoke(ctx, "/pb.Inner/csFetchPlayerQueue", in, out, opts...)
  53. if err != nil {
  54. return nil, err
  55. }
  56. return out, nil
  57. }
  58. func (c *innerClient) CsConnectPlayer(ctx context.Context, in *InnerCsConnectPlayerReq, opts ...grpc.CallOption) (*InnerCsConnectPlayerResp, error) {
  59. out := new(InnerCsConnectPlayerResp)
  60. err := c.cc.Invoke(ctx, "/pb.Inner/csConnectPlayer", in, out, opts...)
  61. if err != nil {
  62. return nil, err
  63. }
  64. return out, nil
  65. }
  66. func (c *innerClient) NotifyUserOnline(ctx context.Context, in *NotifyUserStatusReq, opts ...grpc.CallOption) (*NotifyUserStatusResp, error) {
  67. out := new(NotifyUserStatusResp)
  68. err := c.cc.Invoke(ctx, "/pb.Inner/notifyUserOnline", in, out, opts...)
  69. if err != nil {
  70. return nil, err
  71. }
  72. return out, nil
  73. }
  74. func (c *innerClient) NotifyUserOffline(ctx context.Context, in *NotifyUserStatusReq, opts ...grpc.CallOption) (*NotifyUserStatusResp, error) {
  75. out := new(NotifyUserStatusResp)
  76. err := c.cc.Invoke(ctx, "/pb.Inner/notifyUserOffline", in, out, opts...)
  77. if err != nil {
  78. return nil, err
  79. }
  80. return out, nil
  81. }
  82. // InnerServer is the server API for Inner service.
  83. // All implementations must embed UnimplementedInnerServer
  84. // for forward compatibility
  85. type InnerServer interface {
  86. PlayerFetchCsInfo(context.Context, *InnerPlayerFetchCsInfoReq) (*InnerPlayerFetchCsInfoResp, error)
  87. PlayerDisconnect(context.Context, *InnerPlayerDisconnectReq) (*InnerPlayerDisconnectResp, error)
  88. CsFetchPlayerQueue(context.Context, *InnerCsFetchPlayerQueueReq) (*InnerCsFetchPlayerQueueResp, error)
  89. CsConnectPlayer(context.Context, *InnerCsConnectPlayerReq) (*InnerCsConnectPlayerResp, error)
  90. NotifyUserOnline(context.Context, *NotifyUserStatusReq) (*NotifyUserStatusResp, error)
  91. NotifyUserOffline(context.Context, *NotifyUserStatusReq) (*NotifyUserStatusResp, error)
  92. mustEmbedUnimplementedInnerServer()
  93. }
  94. // UnimplementedInnerServer must be embedded to have forward compatible implementations.
  95. type UnimplementedInnerServer struct {
  96. }
  97. func (UnimplementedInnerServer) PlayerFetchCsInfo(context.Context, *InnerPlayerFetchCsInfoReq) (*InnerPlayerFetchCsInfoResp, error) {
  98. return nil, status.Errorf(codes.Unimplemented, "method PlayerFetchCsInfo not implemented")
  99. }
  100. func (UnimplementedInnerServer) PlayerDisconnect(context.Context, *InnerPlayerDisconnectReq) (*InnerPlayerDisconnectResp, error) {
  101. return nil, status.Errorf(codes.Unimplemented, "method PlayerDisconnect not implemented")
  102. }
  103. func (UnimplementedInnerServer) CsFetchPlayerQueue(context.Context, *InnerCsFetchPlayerQueueReq) (*InnerCsFetchPlayerQueueResp, error) {
  104. return nil, status.Errorf(codes.Unimplemented, "method CsFetchPlayerQueue not implemented")
  105. }
  106. func (UnimplementedInnerServer) CsConnectPlayer(context.Context, *InnerCsConnectPlayerReq) (*InnerCsConnectPlayerResp, error) {
  107. return nil, status.Errorf(codes.Unimplemented, "method CsConnectPlayer not implemented")
  108. }
  109. func (UnimplementedInnerServer) NotifyUserOnline(context.Context, *NotifyUserStatusReq) (*NotifyUserStatusResp, error) {
  110. return nil, status.Errorf(codes.Unimplemented, "method NotifyUserOnline not implemented")
  111. }
  112. func (UnimplementedInnerServer) NotifyUserOffline(context.Context, *NotifyUserStatusReq) (*NotifyUserStatusResp, error) {
  113. return nil, status.Errorf(codes.Unimplemented, "method NotifyUserOffline not implemented")
  114. }
  115. func (UnimplementedInnerServer) mustEmbedUnimplementedInnerServer() {}
  116. // UnsafeInnerServer may be embedded to opt out of forward compatibility for this service.
  117. // Use of this interface is not recommended, as added methods to InnerServer will
  118. // result in compilation errors.
  119. type UnsafeInnerServer interface {
  120. mustEmbedUnimplementedInnerServer()
  121. }
  122. func RegisterInnerServer(s grpc.ServiceRegistrar, srv InnerServer) {
  123. s.RegisterService(&Inner_ServiceDesc, srv)
  124. }
  125. func _Inner_PlayerFetchCsInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  126. in := new(InnerPlayerFetchCsInfoReq)
  127. if err := dec(in); err != nil {
  128. return nil, err
  129. }
  130. if interceptor == nil {
  131. return srv.(InnerServer).PlayerFetchCsInfo(ctx, in)
  132. }
  133. info := &grpc.UnaryServerInfo{
  134. Server: srv,
  135. FullMethod: "/pb.Inner/playerFetchCsInfo",
  136. }
  137. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  138. return srv.(InnerServer).PlayerFetchCsInfo(ctx, req.(*InnerPlayerFetchCsInfoReq))
  139. }
  140. return interceptor(ctx, in, info, handler)
  141. }
  142. func _Inner_PlayerDisconnect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  143. in := new(InnerPlayerDisconnectReq)
  144. if err := dec(in); err != nil {
  145. return nil, err
  146. }
  147. if interceptor == nil {
  148. return srv.(InnerServer).PlayerDisconnect(ctx, in)
  149. }
  150. info := &grpc.UnaryServerInfo{
  151. Server: srv,
  152. FullMethod: "/pb.Inner/playerDisconnect",
  153. }
  154. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  155. return srv.(InnerServer).PlayerDisconnect(ctx, req.(*InnerPlayerDisconnectReq))
  156. }
  157. return interceptor(ctx, in, info, handler)
  158. }
  159. func _Inner_CsFetchPlayerQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  160. in := new(InnerCsFetchPlayerQueueReq)
  161. if err := dec(in); err != nil {
  162. return nil, err
  163. }
  164. if interceptor == nil {
  165. return srv.(InnerServer).CsFetchPlayerQueue(ctx, in)
  166. }
  167. info := &grpc.UnaryServerInfo{
  168. Server: srv,
  169. FullMethod: "/pb.Inner/csFetchPlayerQueue",
  170. }
  171. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  172. return srv.(InnerServer).CsFetchPlayerQueue(ctx, req.(*InnerCsFetchPlayerQueueReq))
  173. }
  174. return interceptor(ctx, in, info, handler)
  175. }
  176. func _Inner_CsConnectPlayer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  177. in := new(InnerCsConnectPlayerReq)
  178. if err := dec(in); err != nil {
  179. return nil, err
  180. }
  181. if interceptor == nil {
  182. return srv.(InnerServer).CsConnectPlayer(ctx, in)
  183. }
  184. info := &grpc.UnaryServerInfo{
  185. Server: srv,
  186. FullMethod: "/pb.Inner/csConnectPlayer",
  187. }
  188. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  189. return srv.(InnerServer).CsConnectPlayer(ctx, req.(*InnerCsConnectPlayerReq))
  190. }
  191. return interceptor(ctx, in, info, handler)
  192. }
  193. func _Inner_NotifyUserOnline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  194. in := new(NotifyUserStatusReq)
  195. if err := dec(in); err != nil {
  196. return nil, err
  197. }
  198. if interceptor == nil {
  199. return srv.(InnerServer).NotifyUserOnline(ctx, in)
  200. }
  201. info := &grpc.UnaryServerInfo{
  202. Server: srv,
  203. FullMethod: "/pb.Inner/notifyUserOnline",
  204. }
  205. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  206. return srv.(InnerServer).NotifyUserOnline(ctx, req.(*NotifyUserStatusReq))
  207. }
  208. return interceptor(ctx, in, info, handler)
  209. }
  210. func _Inner_NotifyUserOffline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  211. in := new(NotifyUserStatusReq)
  212. if err := dec(in); err != nil {
  213. return nil, err
  214. }
  215. if interceptor == nil {
  216. return srv.(InnerServer).NotifyUserOffline(ctx, in)
  217. }
  218. info := &grpc.UnaryServerInfo{
  219. Server: srv,
  220. FullMethod: "/pb.Inner/notifyUserOffline",
  221. }
  222. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  223. return srv.(InnerServer).NotifyUserOffline(ctx, req.(*NotifyUserStatusReq))
  224. }
  225. return interceptor(ctx, in, info, handler)
  226. }
  227. // Inner_ServiceDesc is the grpc.ServiceDesc for Inner service.
  228. // It's only intended for direct use with grpc.RegisterService,
  229. // and not to be introspected or modified (even as a copy)
  230. var Inner_ServiceDesc = grpc.ServiceDesc{
  231. ServiceName: "pb.Inner",
  232. HandlerType: (*InnerServer)(nil),
  233. Methods: []grpc.MethodDesc{
  234. {
  235. MethodName: "playerFetchCsInfo",
  236. Handler: _Inner_PlayerFetchCsInfo_Handler,
  237. },
  238. {
  239. MethodName: "playerDisconnect",
  240. Handler: _Inner_PlayerDisconnect_Handler,
  241. },
  242. {
  243. MethodName: "csFetchPlayerQueue",
  244. Handler: _Inner_CsFetchPlayerQueue_Handler,
  245. },
  246. {
  247. MethodName: "csConnectPlayer",
  248. Handler: _Inner_CsConnectPlayer_Handler,
  249. },
  250. {
  251. MethodName: "notifyUserOnline",
  252. Handler: _Inner_NotifyUserOnline_Handler,
  253. },
  254. {
  255. MethodName: "notifyUserOffline",
  256. Handler: _Inner_NotifyUserOffline_Handler,
  257. },
  258. },
  259. Streams: []grpc.StreamDesc{},
  260. Metadata: "pb/inner.proto",
  261. }