| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408 | // Code generated by protoc-gen-go-grpc. DO NOT EDIT.package websocketimport (	context "context"	grpc "google.golang.org/grpc"	codes "google.golang.org/grpc/codes"	status "google.golang.org/grpc/status"	emptypb "google.golang.org/protobuf/types/known/emptypb")// This is a compile-time assertion to ensure that this generated file// is compatible with the grpc package it is being compiled against.// Requires gRPC-Go v1.32.0 or later.const _ = grpc.SupportPackageIsVersion7// WebsocketClient is the client API for Websocket service.//// 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.type WebsocketClient interface {	// 查询在线人数	FindOnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlinePersonReply, error)	// 查询在线人数	FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlineCanMatchingPersonReply, error)	// 发送消息	SendMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*SendMsgReply, error)	// 更新工作状态	UpdateWorkingStatus(ctx context.Context, in *UpdateWorkingStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)	// 更新权重	UpdateWeight(ctx context.Context, in *UpdateWeightRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)	// 更新每日被匹配数	UpdateTodayMatchedNum(ctx context.Context, in *UpdateTodayMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)	// 检查是否在线	CheckIsOnline(ctx context.Context, in *CheckIsOnlineRequest, opts ...grpc.CallOption) (*CheckIsOnlineReply, error)	// 检查是否在线	CheckIsOnlineByIDs(ctx context.Context, in *CheckIsOnlineByIDsParam, opts ...grpc.CallOption) (*CheckIsOnlineByIDsParam, error)	// 查询在线多少人	FindOnlinePersonNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error)}type websocketClient struct {	cc grpc.ClientConnInterface}func NewWebsocketClient(cc grpc.ClientConnInterface) WebsocketClient {	return &websocketClient{cc}}func (c *websocketClient) FindOnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlinePersonReply, error) {	out := new(FindOnlinePersonReply)	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/FindOnlinePerson", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *websocketClient) FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlineCanMatchingPersonReply, error) {	out := new(FindOnlineCanMatchingPersonReply)	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/FindOnlineCanMatchingPerson", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *websocketClient) SendMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*SendMsgReply, error) {	out := new(SendMsgReply)	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/SendMsg", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *websocketClient) UpdateWorkingStatus(ctx context.Context, in *UpdateWorkingStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/UpdateWorkingStatus", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *websocketClient) UpdateWeight(ctx context.Context, in *UpdateWeightRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/UpdateWeight", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *websocketClient) UpdateTodayMatchedNum(ctx context.Context, in *UpdateTodayMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/UpdateTodayMatchedNum", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *websocketClient) CheckIsOnline(ctx context.Context, in *CheckIsOnlineRequest, opts ...grpc.CallOption) (*CheckIsOnlineReply, error) {	out := new(CheckIsOnlineReply)	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/CheckIsOnline", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *websocketClient) CheckIsOnlineByIDs(ctx context.Context, in *CheckIsOnlineByIDsParam, opts ...grpc.CallOption) (*CheckIsOnlineByIDsParam, error) {	out := new(CheckIsOnlineByIDsParam)	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/CheckIsOnlineByIDs", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *websocketClient) FindOnlinePersonNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OnlinePersonReply, error) {	out := new(OnlinePersonReply)	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/FindOnlinePersonNum", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}// WebsocketServer is the server API for Websocket service.// All implementations must embed UnimplementedWebsocketServer// for forward compatibilitytype WebsocketServer interface {	// 查询在线人数	FindOnlinePerson(context.Context, *emptypb.Empty) (*FindOnlinePersonReply, error)	// 查询在线人数	FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*FindOnlineCanMatchingPersonReply, error)	// 发送消息	SendMsg(context.Context, *SendMsgRequest) (*SendMsgReply, error)	// 更新工作状态	UpdateWorkingStatus(context.Context, *UpdateWorkingStatusRequest) (*emptypb.Empty, error)	// 更新权重	UpdateWeight(context.Context, *UpdateWeightRequest) (*emptypb.Empty, error)	// 更新每日被匹配数	UpdateTodayMatchedNum(context.Context, *UpdateTodayMatchedNumRequest) (*emptypb.Empty, error)	// 检查是否在线	CheckIsOnline(context.Context, *CheckIsOnlineRequest) (*CheckIsOnlineReply, error)	// 检查是否在线	CheckIsOnlineByIDs(context.Context, *CheckIsOnlineByIDsParam) (*CheckIsOnlineByIDsParam, error)	// 查询在线多少人	FindOnlinePersonNum(context.Context, *emptypb.Empty) (*OnlinePersonReply, error)	mustEmbedUnimplementedWebsocketServer()}// UnimplementedWebsocketServer must be embedded to have forward compatible implementations.type UnimplementedWebsocketServer struct {}func (UnimplementedWebsocketServer) FindOnlinePerson(context.Context, *emptypb.Empty) (*FindOnlinePersonReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePerson not implemented")}func (UnimplementedWebsocketServer) FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*FindOnlineCanMatchingPersonReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method FindOnlineCanMatchingPerson not implemented")}func (UnimplementedWebsocketServer) SendMsg(context.Context, *SendMsgRequest) (*SendMsgReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method SendMsg not implemented")}func (UnimplementedWebsocketServer) UpdateWorkingStatus(context.Context, *UpdateWorkingStatusRequest) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkingStatus not implemented")}func (UnimplementedWebsocketServer) UpdateWeight(context.Context, *UpdateWeightRequest) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method UpdateWeight not implemented")}func (UnimplementedWebsocketServer) UpdateTodayMatchedNum(context.Context, *UpdateTodayMatchedNumRequest) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method UpdateTodayMatchedNum not implemented")}func (UnimplementedWebsocketServer) CheckIsOnline(context.Context, *CheckIsOnlineRequest) (*CheckIsOnlineReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckIsOnline not implemented")}func (UnimplementedWebsocketServer) CheckIsOnlineByIDs(context.Context, *CheckIsOnlineByIDsParam) (*CheckIsOnlineByIDsParam, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckIsOnlineByIDs not implemented")}func (UnimplementedWebsocketServer) FindOnlinePersonNum(context.Context, *emptypb.Empty) (*OnlinePersonReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePersonNum not implemented")}func (UnimplementedWebsocketServer) mustEmbedUnimplementedWebsocketServer() {}// UnsafeWebsocketServer may be embedded to opt out of forward compatibility for this service.// Use of this interface is not recommended, as added methods to WebsocketServer will// result in compilation errors.type UnsafeWebsocketServer interface {	mustEmbedUnimplementedWebsocketServer()}func RegisterWebsocketServer(s grpc.ServiceRegistrar, srv WebsocketServer) {	s.RegisterService(&Websocket_ServiceDesc, srv)}func _Websocket_FindOnlinePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(emptypb.Empty)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(WebsocketServer).FindOnlinePerson(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.websocket.Websocket/FindOnlinePerson",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(WebsocketServer).FindOnlinePerson(ctx, req.(*emptypb.Empty))	}	return interceptor(ctx, in, info, handler)}func _Websocket_FindOnlineCanMatchingPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(emptypb.Empty)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(WebsocketServer).FindOnlineCanMatchingPerson(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.websocket.Websocket/FindOnlineCanMatchingPerson",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(WebsocketServer).FindOnlineCanMatchingPerson(ctx, req.(*emptypb.Empty))	}	return interceptor(ctx, in, info, handler)}func _Websocket_SendMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(SendMsgRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(WebsocketServer).SendMsg(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.websocket.Websocket/SendMsg",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(WebsocketServer).SendMsg(ctx, req.(*SendMsgRequest))	}	return interceptor(ctx, in, info, handler)}func _Websocket_UpdateWorkingStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(UpdateWorkingStatusRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(WebsocketServer).UpdateWorkingStatus(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.websocket.Websocket/UpdateWorkingStatus",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(WebsocketServer).UpdateWorkingStatus(ctx, req.(*UpdateWorkingStatusRequest))	}	return interceptor(ctx, in, info, handler)}func _Websocket_UpdateWeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(UpdateWeightRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(WebsocketServer).UpdateWeight(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.websocket.Websocket/UpdateWeight",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(WebsocketServer).UpdateWeight(ctx, req.(*UpdateWeightRequest))	}	return interceptor(ctx, in, info, handler)}func _Websocket_UpdateTodayMatchedNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(UpdateTodayMatchedNumRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(WebsocketServer).UpdateTodayMatchedNum(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.websocket.Websocket/UpdateTodayMatchedNum",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(WebsocketServer).UpdateTodayMatchedNum(ctx, req.(*UpdateTodayMatchedNumRequest))	}	return interceptor(ctx, in, info, handler)}func _Websocket_CheckIsOnline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(CheckIsOnlineRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(WebsocketServer).CheckIsOnline(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.websocket.Websocket/CheckIsOnline",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(WebsocketServer).CheckIsOnline(ctx, req.(*CheckIsOnlineRequest))	}	return interceptor(ctx, in, info, handler)}func _Websocket_CheckIsOnlineByIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(CheckIsOnlineByIDsParam)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(WebsocketServer).CheckIsOnlineByIDs(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.websocket.Websocket/CheckIsOnlineByIDs",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(WebsocketServer).CheckIsOnlineByIDs(ctx, req.(*CheckIsOnlineByIDsParam))	}	return interceptor(ctx, in, info, handler)}func _Websocket_FindOnlinePersonNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(emptypb.Empty)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(WebsocketServer).FindOnlinePersonNum(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.websocket.Websocket/FindOnlinePersonNum",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(WebsocketServer).FindOnlinePersonNum(ctx, req.(*emptypb.Empty))	}	return interceptor(ctx, in, info, handler)}// Websocket_ServiceDesc is the grpc.ServiceDesc for Websocket service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)var Websocket_ServiceDesc = grpc.ServiceDesc{	ServiceName: "api.websocket.Websocket",	HandlerType: (*WebsocketServer)(nil),	Methods: []grpc.MethodDesc{		{			MethodName: "FindOnlinePerson",			Handler:    _Websocket_FindOnlinePerson_Handler,		},		{			MethodName: "FindOnlineCanMatchingPerson",			Handler:    _Websocket_FindOnlineCanMatchingPerson_Handler,		},		{			MethodName: "SendMsg",			Handler:    _Websocket_SendMsg_Handler,		},		{			MethodName: "UpdateWorkingStatus",			Handler:    _Websocket_UpdateWorkingStatus_Handler,		},		{			MethodName: "UpdateWeight",			Handler:    _Websocket_UpdateWeight_Handler,		},		{			MethodName: "UpdateTodayMatchedNum",			Handler:    _Websocket_UpdateTodayMatchedNum_Handler,		},		{			MethodName: "CheckIsOnline",			Handler:    _Websocket_CheckIsOnline_Handler,		},		{			MethodName: "CheckIsOnlineByIDs",			Handler:    _Websocket_CheckIsOnlineByIDs_Handler,		},		{			MethodName: "FindOnlinePersonNum",			Handler:    _Websocket_FindOnlinePersonNum_Handler,		},	},	Streams:  []grpc.StreamDesc{},	Metadata: "websocket.proto",}
 |