This repository has been archived by the owner on Jun 14, 2023. It is now read-only.
/
InstancePing.pb.go
190 lines (164 loc) · 7.42 KB
/
InstancePing.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: register/InstancePing.proto
package register
import (
context "context"
fmt "fmt"
common "github.com/SkyAPM/go2sky/reporter/grpc/common"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ServiceInstancePingPkg struct {
ServiceInstanceId int32 `protobuf:"varint,1,opt,name=serviceInstanceId,proto3" json:"serviceInstanceId,omitempty"`
Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
ServiceInstanceUUID string `protobuf:"bytes,3,opt,name=serviceInstanceUUID,proto3" json:"serviceInstanceUUID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServiceInstancePingPkg) Reset() { *m = ServiceInstancePingPkg{} }
func (m *ServiceInstancePingPkg) String() string { return proto.CompactTextString(m) }
func (*ServiceInstancePingPkg) ProtoMessage() {}
func (*ServiceInstancePingPkg) Descriptor() ([]byte, []int) {
return fileDescriptor_c10bfdff83d834ed, []int{0}
}
func (m *ServiceInstancePingPkg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceInstancePingPkg.Unmarshal(m, b)
}
func (m *ServiceInstancePingPkg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceInstancePingPkg.Marshal(b, m, deterministic)
}
func (m *ServiceInstancePingPkg) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceInstancePingPkg.Merge(m, src)
}
func (m *ServiceInstancePingPkg) XXX_Size() int {
return xxx_messageInfo_ServiceInstancePingPkg.Size(m)
}
func (m *ServiceInstancePingPkg) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceInstancePingPkg.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceInstancePingPkg proto.InternalMessageInfo
func (m *ServiceInstancePingPkg) GetServiceInstanceId() int32 {
if m != nil {
return m.ServiceInstanceId
}
return 0
}
func (m *ServiceInstancePingPkg) GetTime() int64 {
if m != nil {
return m.Time
}
return 0
}
func (m *ServiceInstancePingPkg) GetServiceInstanceUUID() string {
if m != nil {
return m.ServiceInstanceUUID
}
return ""
}
func init() {
proto.RegisterType((*ServiceInstancePingPkg)(nil), "ServiceInstancePingPkg")
}
func init() {
proto.RegisterFile("register/InstancePing.proto", fileDescriptor_c10bfdff83d834ed)
}
var fileDescriptor_c10bfdff83d834ed = []byte{
// 272 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcd, 0x4a, 0xc4, 0x30,
0x1c, 0xc4, 0xcd, 0xae, 0x2e, 0x6c, 0x6e, 0x76, 0x41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xa3, 0x57, 0x2a, 0x6b, 0xbf, 0x79, 0x5b, 0x13, 0x0e, 0x9a, 0x96, 0xaa, 0xbd, 0xcd, 0x9f, 0xa8,
0x84, 0xd4, 0xa9, 0x96, 0x5a, 0xd1, 0x80, 0xed, 0x98, 0x4a, 0xdb, 0x70, 0x7a, 0x48, 0x7d, 0x4e,
0xa2, 0x52, 0xb5, 0x2f, 0xdf, 0xbd, 0xcf, 0x43, 0x67, 0xde, 0x31, 0xe5, 0xb0, 0x5d, 0xcf, 0x7a,
0xba, 0x37, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x53, 0xc9, 0xba, 0xa2, 0x91, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// ServiceInstancePingClient is the client API for ServiceInstancePing service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ServiceInstancePingClient interface {
DoPing(ctx context.Context, in *ServiceInstancePingPkg, opts ...grpc.CallOption) (*common.Commands, error)
}
type serviceInstancePingClient struct {
cc grpc.ClientConnInterface
}
func NewServiceInstancePingClient(cc grpc.ClientConnInterface) ServiceInstancePingClient {
return &serviceInstancePingClient{cc}
}
func (c *serviceInstancePingClient) DoPing(ctx context.Context, in *ServiceInstancePingPkg, opts ...grpc.CallOption) (*common.Commands, error) {
out := new(common.Commands)
err := c.cc.Invoke(ctx, "/ServiceInstancePing/doPing", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ServiceInstancePingServer is the server API for ServiceInstancePing service.
type ServiceInstancePingServer interface {
DoPing(context.Context, *ServiceInstancePingPkg) (*common.Commands, error)
}
// UnimplementedServiceInstancePingServer can be embedded to have forward compatible implementations.
type UnimplementedServiceInstancePingServer struct {
}
func (*UnimplementedServiceInstancePingServer) DoPing(ctx context.Context, req *ServiceInstancePingPkg) (*common.Commands, error) {
return nil, status.Errorf(codes.Unimplemented, "method DoPing not implemented")
}
func RegisterServiceInstancePingServer(s *grpc.Server, srv ServiceInstancePingServer) {
s.RegisterService(&_ServiceInstancePing_serviceDesc, srv)
}
func _ServiceInstancePing_DoPing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ServiceInstancePingPkg)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceInstancePingServer).DoPing(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ServiceInstancePing/DoPing",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceInstancePingServer).DoPing(ctx, req.(*ServiceInstancePingPkg))
}
return interceptor(ctx, in, info, handler)
}
var _ServiceInstancePing_serviceDesc = grpc.ServiceDesc{
ServiceName: "ServiceInstancePing",
HandlerType: (*ServiceInstancePingServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "doPing",
Handler: _ServiceInstancePing_DoPing_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "register/InstancePing.proto",
}