| 115 | } |
| 116 | |
| 117 | func _Diff_Diff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 118 | in := new(DiffRequest) |
| 119 | if err := dec(in); err != nil { |
| 120 | return nil, err |
| 121 | } |
| 122 | if interceptor == nil { |
| 123 | return srv.(DiffServer).Diff(ctx, in) |
| 124 | } |
| 125 | info := &grpc.UnaryServerInfo{ |
| 126 | Server: srv, |
| 127 | FullMethod: "/containerd.services.diff.v1.Diff/Diff", |
| 128 | } |
| 129 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 130 | return srv.(DiffServer).Diff(ctx, req.(*DiffRequest)) |
| 131 | } |
| 132 | return interceptor(ctx, in, info, handler) |
| 133 | } |
| 134 | |
| 135 | // Diff_ServiceDesc is the grpc.ServiceDesc for Diff service. |
| 136 | // It's only intended for direct use with grpc.RegisterService, |