123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.3.0
- // - protoc v3.20.1
- // source: proto/loadBalancer.proto
- package loadBalancer
- 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 (
- LoadBalancerCloudflare_List_FullMethodName = "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/List"
- LoadBalancerCloudflare_Create_FullMethodName = "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/Create"
- LoadBalancerCloudflare_Update_FullMethodName = "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/Update"
- LoadBalancerCloudflare_Delete_FullMethodName = "/cloudflareApi.loadBalancer.LoadBalancerCloudflare/Delete"
- )
- // LoadBalancerCloudflareClient is the client API for LoadBalancerCloudflare 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 LoadBalancerCloudflareClient interface {
- List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*LoadBalancerList, error)
- Create(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancer, error)
- Update(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancer, error)
- Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error)
- }
- type loadBalancerCloudflareClient struct {
- cc grpc.ClientConnInterface
- }
- func NewLoadBalancerCloudflareClient(cc grpc.ClientConnInterface) LoadBalancerCloudflareClient {
- return &loadBalancerCloudflareClient{cc}
- }
- func (c *loadBalancerCloudflareClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*LoadBalancerList, error) {
- out := new(LoadBalancerList)
- err := c.cc.Invoke(ctx, LoadBalancerCloudflare_List_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *loadBalancerCloudflareClient) Create(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancer, error) {
- out := new(LoadBalancer)
- err := c.cc.Invoke(ctx, LoadBalancerCloudflare_Create_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *loadBalancerCloudflareClient) Update(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancer, error) {
- out := new(LoadBalancer)
- err := c.cc.Invoke(ctx, LoadBalancerCloudflare_Update_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *loadBalancerCloudflareClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error) {
- out := new(Empty)
- err := c.cc.Invoke(ctx, LoadBalancerCloudflare_Delete_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // LoadBalancerCloudflareServer is the server API for LoadBalancerCloudflare service.
- // All implementations must embed UnimplementedLoadBalancerCloudflareServer
- // for forward compatibility
- type LoadBalancerCloudflareServer interface {
- List(context.Context, *ListRequest) (*LoadBalancerList, error)
- Create(context.Context, *LoadBalancerRequest) (*LoadBalancer, error)
- Update(context.Context, *LoadBalancerRequest) (*LoadBalancer, error)
- Delete(context.Context, *DeleteRequest) (*Empty, error)
- mustEmbedUnimplementedLoadBalancerCloudflareServer()
- }
- // UnimplementedLoadBalancerCloudflareServer must be embedded to have forward compatible implementations.
- type UnimplementedLoadBalancerCloudflareServer struct {
- }
- func (UnimplementedLoadBalancerCloudflareServer) List(context.Context, *ListRequest) (*LoadBalancerList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
- }
- func (UnimplementedLoadBalancerCloudflareServer) Create(context.Context, *LoadBalancerRequest) (*LoadBalancer, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
- }
- func (UnimplementedLoadBalancerCloudflareServer) Update(context.Context, *LoadBalancerRequest) (*LoadBalancer, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
- }
- func (UnimplementedLoadBalancerCloudflareServer) Delete(context.Context, *DeleteRequest) (*Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
- }
- func (UnimplementedLoadBalancerCloudflareServer) mustEmbedUnimplementedLoadBalancerCloudflareServer() {
- }
- // UnsafeLoadBalancerCloudflareServer may be embedded to opt out of forward compatibility for this service.
- // Use of this interface is not recommended, as added methods to LoadBalancerCloudflareServer will
- // result in compilation errors.
- type UnsafeLoadBalancerCloudflareServer interface {
- mustEmbedUnimplementedLoadBalancerCloudflareServer()
- }
- func RegisterLoadBalancerCloudflareServer(s grpc.ServiceRegistrar, srv LoadBalancerCloudflareServer) {
- s.RegisterService(&LoadBalancerCloudflare_ServiceDesc, srv)
- }
- func _LoadBalancerCloudflare_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LoadBalancerCloudflareServer).List(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LoadBalancerCloudflare_List_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LoadBalancerCloudflareServer).List(ctx, req.(*ListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _LoadBalancerCloudflare_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LoadBalancerRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LoadBalancerCloudflareServer).Create(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LoadBalancerCloudflare_Create_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LoadBalancerCloudflareServer).Create(ctx, req.(*LoadBalancerRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _LoadBalancerCloudflare_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LoadBalancerRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LoadBalancerCloudflareServer).Update(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LoadBalancerCloudflare_Update_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LoadBalancerCloudflareServer).Update(ctx, req.(*LoadBalancerRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _LoadBalancerCloudflare_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(LoadBalancerCloudflareServer).Delete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: LoadBalancerCloudflare_Delete_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(LoadBalancerCloudflareServer).Delete(ctx, req.(*DeleteRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- // LoadBalancerCloudflare_ServiceDesc is the grpc.ServiceDesc for LoadBalancerCloudflare service.
- // It's only intended for direct use with grpc.RegisterService,
- // and not to be introspected or modified (even as a copy)
- var LoadBalancerCloudflare_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "cloudflareApi.loadBalancer.LoadBalancerCloudflare",
- HandlerType: (*LoadBalancerCloudflareServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "List",
- Handler: _LoadBalancerCloudflare_List_Handler,
- },
- {
- MethodName: "Create",
- Handler: _LoadBalancerCloudflare_Create_Handler,
- },
- {
- MethodName: "Update",
- Handler: _LoadBalancerCloudflare_Update_Handler,
- },
- {
- MethodName: "Delete",
- Handler: _LoadBalancerCloudflare_Delete_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "proto/loadBalancer.proto",
- }
|