forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mysqlctl.pb.go
250 lines (213 loc) · 9.28 KB
/
mysqlctl.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
// Code generated by protoc-gen-go.
// source: mysqlctl.proto
// DO NOT EDIT!
/*
Package mysqlctl is a generated protocol buffer package.
It is generated from these files:
mysqlctl.proto
It has these top-level messages:
StartRequest
StartResponse
ShutdownRequest
ShutdownResponse
RunMysqlUpgradeRequest
RunMysqlUpgradeResponse
*/
package mysqlctl
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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.
const _ = proto.ProtoPackageIsVersion1
type StartRequest struct {
}
func (m *StartRequest) Reset() { *m = StartRequest{} }
func (m *StartRequest) String() string { return proto.CompactTextString(m) }
func (*StartRequest) ProtoMessage() {}
func (*StartRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type StartResponse struct {
}
func (m *StartResponse) Reset() { *m = StartResponse{} }
func (m *StartResponse) String() string { return proto.CompactTextString(m) }
func (*StartResponse) ProtoMessage() {}
func (*StartResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type ShutdownRequest struct {
WaitForMysqld bool `protobuf:"varint,1,opt,name=wait_for_mysqld,json=waitForMysqld" json:"wait_for_mysqld,omitempty"`
}
func (m *ShutdownRequest) Reset() { *m = ShutdownRequest{} }
func (m *ShutdownRequest) String() string { return proto.CompactTextString(m) }
func (*ShutdownRequest) ProtoMessage() {}
func (*ShutdownRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
type ShutdownResponse struct {
}
func (m *ShutdownResponse) Reset() { *m = ShutdownResponse{} }
func (m *ShutdownResponse) String() string { return proto.CompactTextString(m) }
func (*ShutdownResponse) ProtoMessage() {}
func (*ShutdownResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
type RunMysqlUpgradeRequest struct {
}
func (m *RunMysqlUpgradeRequest) Reset() { *m = RunMysqlUpgradeRequest{} }
func (m *RunMysqlUpgradeRequest) String() string { return proto.CompactTextString(m) }
func (*RunMysqlUpgradeRequest) ProtoMessage() {}
func (*RunMysqlUpgradeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
type RunMysqlUpgradeResponse struct {
}
func (m *RunMysqlUpgradeResponse) Reset() { *m = RunMysqlUpgradeResponse{} }
func (m *RunMysqlUpgradeResponse) String() string { return proto.CompactTextString(m) }
func (*RunMysqlUpgradeResponse) ProtoMessage() {}
func (*RunMysqlUpgradeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func init() {
proto.RegisterType((*StartRequest)(nil), "mysqlctl.StartRequest")
proto.RegisterType((*StartResponse)(nil), "mysqlctl.StartResponse")
proto.RegisterType((*ShutdownRequest)(nil), "mysqlctl.ShutdownRequest")
proto.RegisterType((*ShutdownResponse)(nil), "mysqlctl.ShutdownResponse")
proto.RegisterType((*RunMysqlUpgradeRequest)(nil), "mysqlctl.RunMysqlUpgradeRequest")
proto.RegisterType((*RunMysqlUpgradeResponse)(nil), "mysqlctl.RunMysqlUpgradeResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// 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.SupportPackageIsVersion2
// Client API for MysqlCtl service
type MysqlCtlClient interface {
Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error)
RunMysqlUpgrade(ctx context.Context, in *RunMysqlUpgradeRequest, opts ...grpc.CallOption) (*RunMysqlUpgradeResponse, error)
}
type mysqlCtlClient struct {
cc *grpc.ClientConn
}
func NewMysqlCtlClient(cc *grpc.ClientConn) MysqlCtlClient {
return &mysqlCtlClient{cc}
}
func (c *mysqlCtlClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) {
out := new(StartResponse)
err := grpc.Invoke(ctx, "/mysqlctl.MysqlCtl/Start", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *mysqlCtlClient) Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) {
out := new(ShutdownResponse)
err := grpc.Invoke(ctx, "/mysqlctl.MysqlCtl/Shutdown", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *mysqlCtlClient) RunMysqlUpgrade(ctx context.Context, in *RunMysqlUpgradeRequest, opts ...grpc.CallOption) (*RunMysqlUpgradeResponse, error) {
out := new(RunMysqlUpgradeResponse)
err := grpc.Invoke(ctx, "/mysqlctl.MysqlCtl/RunMysqlUpgrade", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for MysqlCtl service
type MysqlCtlServer interface {
Start(context.Context, *StartRequest) (*StartResponse, error)
Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
RunMysqlUpgrade(context.Context, *RunMysqlUpgradeRequest) (*RunMysqlUpgradeResponse, error)
}
func RegisterMysqlCtlServer(s *grpc.Server, srv MysqlCtlServer) {
s.RegisterService(&_MysqlCtl_serviceDesc, srv)
}
func _MysqlCtl_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StartRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MysqlCtlServer).Start(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/mysqlctl.MysqlCtl/Start",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MysqlCtlServer).Start(ctx, req.(*StartRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MysqlCtl_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ShutdownRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MysqlCtlServer).Shutdown(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/mysqlctl.MysqlCtl/Shutdown",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MysqlCtlServer).Shutdown(ctx, req.(*ShutdownRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MysqlCtl_RunMysqlUpgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RunMysqlUpgradeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MysqlCtlServer).RunMysqlUpgrade(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/mysqlctl.MysqlCtl/RunMysqlUpgrade",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MysqlCtlServer).RunMysqlUpgrade(ctx, req.(*RunMysqlUpgradeRequest))
}
return interceptor(ctx, in, info, handler)
}
var _MysqlCtl_serviceDesc = grpc.ServiceDesc{
ServiceName: "mysqlctl.MysqlCtl",
HandlerType: (*MysqlCtlServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Start",
Handler: _MysqlCtl_Start_Handler,
},
{
MethodName: "Shutdown",
Handler: _MysqlCtl_Shutdown_Handler,
},
{
MethodName: "RunMysqlUpgrade",
Handler: _MysqlCtl_RunMysqlUpgrade_Handler,
},
},
Streams: []grpc.StreamDesc{},
}
var fileDescriptor0 = []byte{
// 223 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0xad, 0x2c, 0x2e,
0xcc, 0x49, 0x2e, 0xc9, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0x95, 0xf8,
0xb8, 0x78, 0x82, 0x4b, 0x12, 0x8b, 0x4a, 0x82, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0x94, 0xf8,
0xb9, 0x78, 0xa1, 0xfc, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0x25, 0x4b, 0x2e, 0xfe, 0xe0, 0x8c,
0xd2, 0x92, 0x94, 0xfc, 0xf2, 0x3c, 0xa8, 0x1a, 0x21, 0x35, 0x2e, 0xfe, 0xf2, 0xc4, 0xcc, 0x92,
0xf8, 0xb4, 0xfc, 0xa2, 0x78, 0xb0, 0x41, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x1c, 0x41, 0xbc,
0x20, 0x61, 0xb7, 0xfc, 0x22, 0x5f, 0xb0, 0xa0, 0x92, 0x10, 0x97, 0x00, 0x42, 0x2b, 0xd4, 0x38,
0x09, 0x2e, 0xb1, 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