MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / _GStringService_Incr_Handler

Function _GStringService_Incr_Handler

lib/proto/gstring/db_grpc.pb.go:511–527  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

509}
510
511func _GStringService_Incr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
512 in := new(IncrRequest)
513 if err := dec(in); err != nil {
514 return nil, err
515 }
516 if interceptor == nil {
517 return srv.(GStringServiceServer).Incr(ctx, in)
518 }
519 info := &grpc.UnaryServerInfo{
520 Server: srv,
521 FullMethod: "/gstring.GStringService/Incr",
522 }
523 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
524 return srv.(GStringServiceServer).Incr(ctx, req.(*IncrRequest))
525 }
526 return interceptor(ctx, in, info, handler)
527}
528
529func _GStringService_IncrBy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
530 in := new(IncrByRequest)

Callers

nothing calls this directly

Calls 1

IncrMethod · 0.65

Tested by

no test coverage detected