MCPcopy Create free account
hub / github.com/evenh/intercert / _CertificateIssuer_IssueCert_Handler

Function _CertificateIssuer_IssueCert_Handler

api/api.pb.go:406–422  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

404}
405
406func _CertificateIssuer_IssueCert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
407 in := new(CertificateRequest)
408 if err := dec(in); err != nil {
409 return nil, err
410 }
411 if interceptor == nil {
412 return srv.(CertificateIssuerServer).IssueCert(ctx, in)
413 }
414 info := &grpc.UnaryServerInfo{
415 Server: srv,
416 FullMethod: "/api.CertificateIssuer/IssueCert",
417 }
418 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
419 return srv.(CertificateIssuerServer).IssueCert(ctx, req.(*CertificateRequest))
420 }
421 return interceptor(ctx, in, info, handler)
422}
423
424func _CertificateIssuer_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
425 in := new(PingRequest)

Callers

nothing calls this directly

Calls 1

IssueCertMethod · 0.65

Tested by

no test coverage detected