github.com/cloudwan/edgelq-sdk@v1.15.4/logging/client/v1alpha2/log/log_service.pb.client.go (about) 1 // Code generated by protoc-gen-goten-client 2 // API: LogService 3 // DO NOT EDIT!!! 4 5 package log_client 6 7 import ( 8 "context" 9 10 "google.golang.org/grpc" 11 "google.golang.org/protobuf/runtime/protoimpl" 12 ) 13 14 // proto imports 15 import ( 16 log "github.com/cloudwan/edgelq-sdk/logging/resources/v1alpha2/log" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var ( 21 _ = protoimpl.DescBuilder{} 22 _ = new(context.Context) 23 _ = grpc.ClientConn{} 24 ) 25 26 // make sure we're using proto imports 27 var ( 28 _ = &log.Log{} 29 ) 30 31 // This is a compile-time assertion to ensure that this generated file 32 // is compatible with the proto package it is being compiled against. 33 // A compilation error at this line likely means your copy of the 34 // proto package needs to be updated. 35 const ( 36 // Verify that this generated code is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 38 // Verify that runtime/protoimpl is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 40 ) 41 42 // This is a compile-time assertion to ensure that this generated file 43 // is compatible with the grpc package it is being compiled against. 44 const _ = grpc.SupportPackageIsVersion6 45 46 // LogServiceClient is the client API for LogService. 47 // 48 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 49 type LogServiceClient interface { 50 ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error) 51 CreateLogs(ctx context.Context, in *CreateLogsRequest, opts ...grpc.CallOption) (*CreateLogsResponse, error) 52 } 53 54 type client struct { 55 cc grpc.ClientConnInterface 56 } 57 58 func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient { 59 return &client{cc} 60 } 61 62 func (c *client) ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error) { 63 out := new(ListLogsResponse) 64 err := c.cc.Invoke(ctx, "/ntt.logging.v1alpha2.LogService/ListLogs", in, out, opts...) 65 if err != nil { 66 return nil, err 67 } 68 return out, nil 69 } 70 71 func (c *client) CreateLogs(ctx context.Context, in *CreateLogsRequest, opts ...grpc.CallOption) (*CreateLogsResponse, error) { 72 out := new(CreateLogsResponse) 73 err := c.cc.Invoke(ctx, "/ntt.logging.v1alpha2.LogService/CreateLogs", in, out, opts...) 74 if err != nil { 75 return nil, err 76 } 77 return out, nil 78 }