MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / _Quick_UploadArchive_Handler

Function _Quick_UploadArchive_Handler

internal/quickdb/v1/quickdb_grpc.pb.go:173–189  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

171}
172
173func _Quick_UploadArchive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
174 in := new(UploadArchiveRequest)
175 if err := dec(in); err != nil {
176 return nil, err
177 }
178 if interceptor == nil {
179 return srv.(QuickServer).UploadArchive(ctx, in)
180 }
181 info := &grpc.UnaryServerInfo{
182 Server: srv,
183 FullMethod: Quick_UploadArchive_FullMethodName,
184 }
185 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
186 return srv.(QuickServer).UploadArchive(ctx, req.(*UploadArchiveRequest))
187 }
188 return interceptor(ctx, in, info, handler)
189}
190
191func _Quick_VerifyQuerySets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
192 in := new(VerifyQuerySetsRequest)

Callers

nothing calls this directly

Calls 1

UploadArchiveMethod · 0.65

Tested by

no test coverage detected