MCPcopy Create free account
hub / github.com/couchbase/cbft / _SearchService_DocCount_Handler

Function _SearchService_DocCount_Handler

protobuf/search.pb.go:983–999  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

981}
982
983func _SearchService_DocCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
984 in := new(DocCountRequest)
985 if err := dec(in); err != nil {
986 return nil, err
987 }
988 if interceptor == nil {
989 return srv.(SearchServiceServer).DocCount(ctx, in)
990 }
991 info := &grpc.UnaryServerInfo{
992 Server: srv,
993 FullMethod: "/search.SearchService/DocCount",
994 }
995 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
996 return srv.(SearchServiceServer).DocCount(ctx, req.(*DocCountRequest))
997 }
998 return interceptor(ctx, in, info, handler)
999}
1000
1001var _SearchService_serviceDesc = grpc.ServiceDesc{
1002 ServiceName: "search.SearchService",

Callers

nothing calls this directly

Calls 1

DocCountMethod · 0.65

Tested by

no test coverage detected