// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v3.20.1 // source: proto/purge.proto package purge 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 const ( PurgeCloudflare_PurgeCloudflare_FullMethodName = "/cloudflareApi.cache.purge.PurgeCloudflare/PurgeCloudflare" PurgeCloudflare_PurgeCloudflareByPrefix_FullMethodName = "/cloudflareApi.cache.purge.PurgeCloudflare/PurgeCloudflareByPrefix" PurgeCloudflare_PurgeCloudflareEverything_FullMethodName = "/cloudflareApi.cache.purge.PurgeCloudflare/PurgeCloudflareEverything" ) // PurgeCloudflareClient is the client API for PurgeCloudflare 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 PurgeCloudflareClient interface { // Sends a greeting PurgeCloudflare(ctx context.Context, in *PurgeRequestCloudflare, opts ...grpc.CallOption) (*PurgeReplyCloudflare, error) PurgeCloudflareByPrefix(ctx context.Context, in *PurgeRequestCloudflarePrefix, opts ...grpc.CallOption) (*PurgeReplyCloudflare, error) PurgeCloudflareEverything(ctx context.Context, in *PurgeRequestCloudflareEverything, opts ...grpc.CallOption) (*PurgeReplyCloudflare, error) } type purgeCloudflareClient struct { cc grpc.ClientConnInterface } func NewPurgeCloudflareClient(cc grpc.ClientConnInterface) PurgeCloudflareClient { return &purgeCloudflareClient{cc} } func (c *purgeCloudflareClient) PurgeCloudflare(ctx context.Context, in *PurgeRequestCloudflare, opts ...grpc.CallOption) (*PurgeReplyCloudflare, error) { out := new(PurgeReplyCloudflare) err := c.cc.Invoke(ctx, PurgeCloudflare_PurgeCloudflare_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *purgeCloudflareClient) PurgeCloudflareByPrefix(ctx context.Context, in *PurgeRequestCloudflarePrefix, opts ...grpc.CallOption) (*PurgeReplyCloudflare, error) { out := new(PurgeReplyCloudflare) err := c.cc.Invoke(ctx, PurgeCloudflare_PurgeCloudflareByPrefix_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *purgeCloudflareClient) PurgeCloudflareEverything(ctx context.Context, in *PurgeRequestCloudflareEverything, opts ...grpc.CallOption) (*PurgeReplyCloudflare, error) { out := new(PurgeReplyCloudflare) err := c.cc.Invoke(ctx, PurgeCloudflare_PurgeCloudflareEverything_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // PurgeCloudflareServer is the server API for PurgeCloudflare service. // All implementations must embed UnimplementedPurgeCloudflareServer // for forward compatibility type PurgeCloudflareServer interface { // Sends a greeting PurgeCloudflare(context.Context, *PurgeRequestCloudflare) (*PurgeReplyCloudflare, error) PurgeCloudflareByPrefix(context.Context, *PurgeRequestCloudflarePrefix) (*PurgeReplyCloudflare, error) PurgeCloudflareEverything(context.Context, *PurgeRequestCloudflareEverything) (*PurgeReplyCloudflare, error) mustEmbedUnimplementedPurgeCloudflareServer() } // UnimplementedPurgeCloudflareServer must be embedded to have forward compatible implementations. type UnimplementedPurgeCloudflareServer struct { } func (UnimplementedPurgeCloudflareServer) PurgeCloudflare(context.Context, *PurgeRequestCloudflare) (*PurgeReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method PurgeCloudflare not implemented") } func (UnimplementedPurgeCloudflareServer) PurgeCloudflareByPrefix(context.Context, *PurgeRequestCloudflarePrefix) (*PurgeReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method PurgeCloudflareByPrefix not implemented") } func (UnimplementedPurgeCloudflareServer) PurgeCloudflareEverything(context.Context, *PurgeRequestCloudflareEverything) (*PurgeReplyCloudflare, error) { return nil, status.Errorf(codes.Unimplemented, "method PurgeCloudflareEverything not implemented") } func (UnimplementedPurgeCloudflareServer) mustEmbedUnimplementedPurgeCloudflareServer() {} // UnsafePurgeCloudflareServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PurgeCloudflareServer will // result in compilation errors. type UnsafePurgeCloudflareServer interface { mustEmbedUnimplementedPurgeCloudflareServer() } func RegisterPurgeCloudflareServer(s grpc.ServiceRegistrar, srv PurgeCloudflareServer) { s.RegisterService(&PurgeCloudflare_ServiceDesc, srv) } func _PurgeCloudflare_PurgeCloudflare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PurgeRequestCloudflare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PurgeCloudflareServer).PurgeCloudflare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: PurgeCloudflare_PurgeCloudflare_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurgeCloudflareServer).PurgeCloudflare(ctx, req.(*PurgeRequestCloudflare)) } return interceptor(ctx, in, info, handler) } func _PurgeCloudflare_PurgeCloudflareByPrefix_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PurgeRequestCloudflarePrefix) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PurgeCloudflareServer).PurgeCloudflareByPrefix(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: PurgeCloudflare_PurgeCloudflareByPrefix_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurgeCloudflareServer).PurgeCloudflareByPrefix(ctx, req.(*PurgeRequestCloudflarePrefix)) } return interceptor(ctx, in, info, handler) } func _PurgeCloudflare_PurgeCloudflareEverything_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PurgeRequestCloudflareEverything) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(PurgeCloudflareServer).PurgeCloudflareEverything(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: PurgeCloudflare_PurgeCloudflareEverything_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PurgeCloudflareServer).PurgeCloudflareEverything(ctx, req.(*PurgeRequestCloudflareEverything)) } return interceptor(ctx, in, info, handler) } // PurgeCloudflare_ServiceDesc is the grpc.ServiceDesc for PurgeCloudflare service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var PurgeCloudflare_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudflareApi.cache.purge.PurgeCloudflare", HandlerType: (*PurgeCloudflareServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PurgeCloudflare", Handler: _PurgeCloudflare_PurgeCloudflare_Handler, }, { MethodName: "PurgeCloudflareByPrefix", Handler: _PurgeCloudflare_PurgeCloudflareByPrefix_Handler, }, { MethodName: "PurgeCloudflareEverything", Handler: _PurgeCloudflare_PurgeCloudflareEverything_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/purge.proto", }