MCPcopy Index your code
hub / github.com/dearcode/candy / _NoticeService_Subscribe_Handler

Function _NoticeService_Subscribe_Handler

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

Source from the content-addressed store, hash-verified

183}
184
185func _NoticeService_Subscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
186 in := new(SubscribeRequest)
187 if err := dec(in); err != nil {
188 return nil, err
189 }
190 if interceptor == nil {
191 return srv.(NoticeServiceServer).Subscribe(ctx, in)
192 }
193 info := &grpc.UnaryServerInfo{
194 Server: srv,
195 FullMethod: "/candy.meta.NoticeService/Subscribe",
196 }
197 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
198 return srv.(NoticeServiceServer).Subscribe(ctx, req.(*SubscribeRequest))
199 }
200 return interceptor(ctx, in, info, handler)
201}
202
203func _NoticeService_UnSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
204 in := new(UnSubscribeRequest)

Callers

nothing calls this directly

Calls 1

SubscribeMethod · 0.65

Tested by

no test coverage detected