7
grpc "google.golang.org/grpc"
8
codes "google.golang.org/grpc/codes"
9
status "google.golang.org/grpc/status"
15
const _ = grpc.SupportPackageIsVersion7
20
type InterCpPingServiceClient interface {
21
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
24
type interCpPingServiceClient struct {
25
cc grpc.ClientConnInterface
28
func NewInterCpPingServiceClient(cc grpc.ClientConnInterface) InterCpPingServiceClient {
29
return &interCpPingServiceClient{cc}
32
func (c *interCpPingServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
33
out := new(PingResponse)
34
err := c.cc.Invoke(ctx, "/kuma.system.v1alpha1.InterCpPingService/Ping", in, out, opts...)
44
type InterCpPingServiceServer interface {
45
Ping(context.Context, *PingRequest) (*PingResponse, error)
46
mustEmbedUnimplementedInterCpPingServiceServer()
50
type UnimplementedInterCpPingServiceServer struct {
53
func (UnimplementedInterCpPingServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
54
return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
56
func (UnimplementedInterCpPingServiceServer) mustEmbedUnimplementedInterCpPingServiceServer() {}
61
type UnsafeInterCpPingServiceServer interface {
62
mustEmbedUnimplementedInterCpPingServiceServer()
65
func RegisterInterCpPingServiceServer(s grpc.ServiceRegistrar, srv InterCpPingServiceServer) {
66
s.RegisterService(&InterCpPingService_ServiceDesc, srv)
69
func _InterCpPingService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
70
in := new(PingRequest)
71
if err := dec(in); err != nil {
74
if interceptor == nil {
75
return srv.(InterCpPingServiceServer).Ping(ctx, in)
77
info := &grpc.UnaryServerInfo{
79
FullMethod: "/kuma.system.v1alpha1.InterCpPingService/Ping",
81
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
82
return srv.(InterCpPingServiceServer).Ping(ctx, req.(*PingRequest))
84
return interceptor(ctx, in, info, handler)
90
var InterCpPingService_ServiceDesc = grpc.ServiceDesc{
91
ServiceName: "kuma.system.v1alpha1.InterCpPingService",
92
HandlerType: (*InterCpPingServiceServer)(nil),
93
Methods: []grpc.MethodDesc{
96
Handler: _InterCpPingService_Ping_Handler,
99
Streams: []grpc.StreamDesc{},
100
Metadata: "api/system/v1alpha1/inter_cp_ping.proto",