MCPcopy Index your code
hub / github.com/tinode/chat / _Plugin_Message_Handler

Function _Plugin_Message_Handler

pbx/model_grpc.pb.go:508–524  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

506}
507
508func _Plugin_Message_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
509 in := new(MessageEvent)
510 if err := dec(in); err != nil {
511 return nil, err
512 }
513 if interceptor == nil {
514 return srv.(PluginServer).Message(ctx, in)
515 }
516 info := &grpc.UnaryServerInfo{
517 Server: srv,
518 FullMethod: "/pbx.Plugin/Message",
519 }
520 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
521 return srv.(PluginServer).Message(ctx, req.(*MessageEvent))
522 }
523 return interceptor(ctx, in, info, handler)
524}
525
526// Plugin_ServiceDesc is the grpc.ServiceDesc for Plugin service.
527// It's only intended for direct use with grpc.RegisterService,

Callers

nothing calls this directly

Calls 1

MessageMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…