MCPcopy Create free account
hub / github.com/cloud-native-go/examples / _KeyValue_Delete_Handler

Function _KeyValue_Delete_Handler

ch08/grpc/keyvalue/keyvalue_grpc.pb.go:142–158  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

140}
141
142func _KeyValue_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
143 in := new(DeleteRequest)
144 if err := dec(in); err != nil {
145 return nil, err
146 }
147 if interceptor == nil {
148 return srv.(KeyValueServer).Delete(ctx, in)
149 }
150 info := &grpc.UnaryServerInfo{
151 Server: srv,
152 FullMethod: "/KeyValue/Delete",
153 }
154 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
155 return srv.(KeyValueServer).Delete(ctx, req.(*DeleteRequest))
156 }
157 return interceptor(ctx, in, info, handler)
158}
159
160var _KeyValue_serviceDesc = grpc.ServiceDesc{
161 ServiceName: "KeyValue",

Callers

nothing calls this directly

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected