MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / _Zero_AssignIds_Handler

Function _Zero_AssignIds_Handler

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

Source from the content-addressed store, hash-verified

5999}
6000
6001func _Zero_AssignIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6002 in := new(Num)
6003 if err := dec(in); err != nil {
6004 return nil, err
6005 }
6006 if interceptor == nil {
6007 return srv.(ZeroServer).AssignIds(ctx, in)
6008 }
6009 info := &grpc.UnaryServerInfo{
6010 Server: srv,
6011 FullMethod: "/pb.Zero/AssignIds",
6012 }
6013 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6014 return srv.(ZeroServer).AssignIds(ctx, req.(*Num))
6015 }
6016 return interceptor(ctx, in, info, handler)
6017}
6018
6019func _Zero_Timestamps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6020 in := new(Num)

Callers

nothing calls this directly

Calls 1

AssignIdsMethod · 0.65

Tested by

no test coverage detected