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

Function _Plugin_Account_Handler

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

Source from the content-addressed store, hash-verified

452}
453
454func _Plugin_Account_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
455 in := new(AccountEvent)
456 if err := dec(in); err != nil {
457 return nil, err
458 }
459 if interceptor == nil {
460 return srv.(PluginServer).Account(ctx, in)
461 }
462 info := &grpc.UnaryServerInfo{
463 Server: srv,
464 FullMethod: "/pbx.Plugin/Account",
465 }
466 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
467 return srv.(PluginServer).Account(ctx, req.(*AccountEvent))
468 }
469 return interceptor(ctx, in, info, handler)
470}
471
472func _Plugin_Topic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
473 in := new(TopicEvent)

Callers

nothing calls this directly

Calls 1

AccountMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…