kuma

Форк
0
/
inter_cp_ping_grpc.pb.go 
101 строка · 3.7 Кб
1
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2

3
package v1alpha1
4

5
import (
6
	context "context"
7
	grpc "google.golang.org/grpc"
8
	codes "google.golang.org/grpc/codes"
9
	status "google.golang.org/grpc/status"
10
)
11

12
// This is a compile-time assertion to ensure that this generated file
13
// is compatible with the grpc package it is being compiled against.
14
// Requires gRPC-Go v1.32.0 or later.
15
const _ = grpc.SupportPackageIsVersion7
16

17
// InterCpPingServiceClient is the client API for InterCpPingService service.
18
//
19
// 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.
20
type InterCpPingServiceClient interface {
21
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
22
}
23

24
type interCpPingServiceClient struct {
25
	cc grpc.ClientConnInterface
26
}
27

28
func NewInterCpPingServiceClient(cc grpc.ClientConnInterface) InterCpPingServiceClient {
29
	return &interCpPingServiceClient{cc}
30
}
31

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...)
35
	if err != nil {
36
		return nil, err
37
	}
38
	return out, nil
39
}
40

41
// InterCpPingServiceServer is the server API for InterCpPingService service.
42
// All implementations must embed UnimplementedInterCpPingServiceServer
43
// for forward compatibility
44
type InterCpPingServiceServer interface {
45
	Ping(context.Context, *PingRequest) (*PingResponse, error)
46
	mustEmbedUnimplementedInterCpPingServiceServer()
47
}
48

49
// UnimplementedInterCpPingServiceServer must be embedded to have forward compatible implementations.
50
type UnimplementedInterCpPingServiceServer struct {
51
}
52

53
func (UnimplementedInterCpPingServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
54
	return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
55
}
56
func (UnimplementedInterCpPingServiceServer) mustEmbedUnimplementedInterCpPingServiceServer() {}
57

58
// UnsafeInterCpPingServiceServer may be embedded to opt out of forward compatibility for this service.
59
// Use of this interface is not recommended, as added methods to InterCpPingServiceServer will
60
// result in compilation errors.
61
type UnsafeInterCpPingServiceServer interface {
62
	mustEmbedUnimplementedInterCpPingServiceServer()
63
}
64

65
func RegisterInterCpPingServiceServer(s grpc.ServiceRegistrar, srv InterCpPingServiceServer) {
66
	s.RegisterService(&InterCpPingService_ServiceDesc, srv)
67
}
68

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 {
72
		return nil, err
73
	}
74
	if interceptor == nil {
75
		return srv.(InterCpPingServiceServer).Ping(ctx, in)
76
	}
77
	info := &grpc.UnaryServerInfo{
78
		Server:     srv,
79
		FullMethod: "/kuma.system.v1alpha1.InterCpPingService/Ping",
80
	}
81
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
82
		return srv.(InterCpPingServiceServer).Ping(ctx, req.(*PingRequest))
83
	}
84
	return interceptor(ctx, in, info, handler)
85
}
86

87
// InterCpPingService_ServiceDesc is the grpc.ServiceDesc for InterCpPingService service.
88
// It's only intended for direct use with grpc.RegisterService,
89
// and not to be introspected or modified (even as a copy)
90
var InterCpPingService_ServiceDesc = grpc.ServiceDesc{
91
	ServiceName: "kuma.system.v1alpha1.InterCpPingService",
92
	HandlerType: (*InterCpPingServiceServer)(nil),
93
	Methods: []grpc.MethodDesc{
94
		{
95
			MethodName: "Ping",
96
			Handler:    _InterCpPingService_Ping_Handler,
97
		},
98
	},
99
	Streams:  []grpc.StreamDesc{},
100
	Metadata: "api/system/v1alpha1/inter_cp_ping.proto",
101
}
102

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.