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

Function _GStringService_Append_Handler

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

Source from the content-addressed store, hash-verified

491}
492
493func _GStringService_Append_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
494 in := new(AppendRequest)
495 if err := dec(in); err != nil {
496 return nil, err
497 }
498 if interceptor == nil {
499 return srv.(GStringServiceServer).Append(ctx, in)
500 }
501 info := &grpc.UnaryServerInfo{
502 Server: srv,
503 FullMethod: "/gstring.GStringService/Append",
504 }
505 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
506 return srv.(GStringServiceServer).Append(ctx, req.(*AppendRequest))
507 }
508 return interceptor(ctx, in, info, handler)
509}
510
511func _GStringService_Incr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
512 in := new(IncrRequest)

Callers

nothing calls this directly

Calls 1

AppendMethod · 0.65

Tested by

no test coverage detected