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

Function _Plugin_Topic_Handler

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

Source from the content-addressed store, hash-verified

470}
471
472func _Plugin_Topic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
473 in := new(TopicEvent)
474 if err := dec(in); err != nil {
475 return nil, err
476 }
477 if interceptor == nil {
478 return srv.(PluginServer).Topic(ctx, in)
479 }
480 info := &grpc.UnaryServerInfo{
481 Server: srv,
482 FullMethod: "/pbx.Plugin/Topic",
483 }
484 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
485 return srv.(PluginServer).Topic(ctx, req.(*TopicEvent))
486 }
487 return interceptor(ctx, in, info, handler)
488}
489
490func _Plugin_Subscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
491 in := new(SubscriptionEvent)

Callers

nothing calls this directly

Calls 1

TopicMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…