123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.2.0
- // - protoc v3.19.1
- // source: proto/certificate.proto
- package certificate
- import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
- // CertificateCloudflareClient is the client API for CertificateCloudflare service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
- type CertificateCloudflareClient interface {
- // Sends a greeting
- CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error)
- DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error)
- EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error)
- UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error)
- }
- type certificateCloudflareClient struct {
- cc grpc.ClientConnInterface
- }
- func NewCertificateCloudflareClient(cc grpc.ClientConnInterface) CertificateCloudflareClient {
- return &certificateCloudflareClient{cc}
- }
- func (c *certificateCloudflareClient) CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error) {
- out := new(CreateCertificateReplyCloudflare)
- err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/CreateCertificate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *certificateCloudflareClient) DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error) {
- out := new(DeleteCertificateReplyCloudflare)
- err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/DeleteCertificate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *certificateCloudflareClient) EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error) {
- out := new(EditCertificateReplyCloudflare)
- err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/EditCertificate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *certificateCloudflareClient) UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error) {
- out := new(UniversalCertificateReplyCloudflare)
- err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/UniversalCertificate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // CertificateCloudflareServer is the server API for CertificateCloudflare service.
- // All implementations must embed UnimplementedCertificateCloudflareServer
- // for forward compatibility
- type CertificateCloudflareServer interface {
- // Sends a greeting
- CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error)
- DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error)
- EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error)
- UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error)
- mustEmbedUnimplementedCertificateCloudflareServer()
- }
- // UnimplementedCertificateCloudflareServer must be embedded to have forward compatible implementations.
- type UnimplementedCertificateCloudflareServer struct {
- }
- func (UnimplementedCertificateCloudflareServer) CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CreateCertificate not implemented")
- }
- func (UnimplementedCertificateCloudflareServer) DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteCertificate not implemented")
- }
- func (UnimplementedCertificateCloudflareServer) EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EditCertificate not implemented")
- }
- func (UnimplementedCertificateCloudflareServer) UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UniversalCertificate not implemented")
- }
- func (UnimplementedCertificateCloudflareServer) mustEmbedUnimplementedCertificateCloudflareServer() {}
- // UnsafeCertificateCloudflareServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to CertificateCloudflareServer will
- // result in compilation errors.
- type UnsafeCertificateCloudflareServer interface {
- mustEmbedUnimplementedCertificateCloudflareServer()
- }
- func RegisterCertificateCloudflareServer(s grpc.ServiceRegistrar, srv CertificateCloudflareServer) {
- s.RegisterService(&CertificateCloudflare_ServiceDesc, srv)
- }
- func _CertificateCloudflare_CreateCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateCertificateRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CertificateCloudflareServer).CreateCertificate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/CreateCertificate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CertificateCloudflareServer).CreateCertificate(ctx, req.(*CreateCertificateRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _CertificateCloudflare_DeleteCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteCertificateRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/DeleteCertificate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CertificateCloudflareServer).DeleteCertificate(ctx, req.(*DeleteCertificateRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _CertificateCloudflare_EditCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(EditCertificateRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CertificateCloudflareServer).EditCertificate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/EditCertificate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CertificateCloudflareServer).EditCertificate(ctx, req.(*EditCertificateRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _CertificateCloudflare_UniversalCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UniversalCertificateRequestCloudflare)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/UniversalCertificate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, req.(*UniversalCertificateRequestCloudflare))
- }
- return interceptor(ctx, in, info, handler)
- }
- // CertificateCloudflare_ServiceDesc is the grpc.ServiceDesc for CertificateCloudflare service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var CertificateCloudflare_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "cloudflareApi.cache.Certificate.CertificateCloudflare",
- HandlerType: (*CertificateCloudflareServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "CreateCertificate",
- Handler: _CertificateCloudflare_CreateCertificate_Handler,
- },
- {
- MethodName: "DeleteCertificate",
- Handler: _CertificateCloudflare_DeleteCertificate_Handler,
- },
- {
- MethodName: "EditCertificate",
- Handler: _CertificateCloudflare_EditCertificate_Handler,
- },
- {
- MethodName: "UniversalCertificate",
- Handler: _CertificateCloudflare_UniversalCertificate_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "proto/certificate.proto",
- }
|