MCPcopy Create free account
hub / github.com/dearcode/candy / _NoticeService_UnSubscribe_Handler

Function _NoticeService_UnSubscribe_Handler

meta/notice.pb.go:203–219  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

201}
202
203func _NoticeService_UnSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
204 in := new(UnSubscribeRequest)
205 if err := dec(in); err != nil {
206 return nil, err
207 }
208 if interceptor == nil {
209 return srv.(NoticeServiceServer).UnSubscribe(ctx, in)
210 }
211 info := &grpc.UnaryServerInfo{
212 Server: srv,
213 FullMethod: "/candy.meta.NoticeService/UnSubscribe",
214 }
215 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
216 return srv.(NoticeServiceServer).UnSubscribe(ctx, req.(*UnSubscribeRequest))
217 }
218 return interceptor(ctx, in, info, handler)
219}
220
221func _NoticeService_Push_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
222 in := new(PushRequest)

Callers

nothing calls this directly

Calls 1

UnSubscribeMethod · 0.65

Tested by

no test coverage detected