forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mysqlctl.pb.go
191 lines (158 loc) · 5.42 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
// 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
type StartRequest struct {
}
func (m *StartRequest) Reset() { *m = StartRequest{} }
func (m *StartRequest) String() string { return proto.CompactTextString(m) }
func (*StartRequest) ProtoMessage() {}
type StartResponse struct {
}
func (m *StartResponse) Reset() { *m = StartResponse{} }
func (m *StartResponse) String() string { return proto.CompactTextString(m) }
func (*StartResponse) ProtoMessage() {}
type ShutdownRequest struct {
WaitForMysqld bool `protobuf:"varint,1,opt,name=wait_for_mysqld" json:"wait_for_mysqld,omitempty"`
}
func (m *ShutdownRequest) Reset() { *m = ShutdownRequest{} }
func (m *ShutdownRequest) String() string { return proto.CompactTextString(m) }
func (*ShutdownRequest) ProtoMessage() {}
type ShutdownResponse struct {
}
func (m *ShutdownResponse) Reset() { *m = ShutdownResponse{} }
func (m *ShutdownResponse) String() string { return proto.CompactTextString(m) }
func (*ShutdownResponse) ProtoMessage() {}
type RunMysqlUpgradeRequest struct {
}
func (m *RunMysqlUpgradeRequest) Reset() { *m = RunMysqlUpgradeRequest{} }
func (m *RunMysqlUpgradeRequest) String() string { return proto.CompactTextString(m) }
func (*RunMysqlUpgradeRequest) ProtoMessage() {}
type RunMysqlUpgradeResponse struct {
}
func (m *RunMysqlUpgradeResponse) Reset() { *m = RunMysqlUpgradeResponse{} }
func (m *RunMysqlUpgradeResponse) String() string { return proto.CompactTextString(m) }
func (*RunMysqlUpgradeResponse) ProtoMessage() {}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// 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) (interface{}, error) {
in := new(StartRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(MysqlCtlServer).Start(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
func _MysqlCtl_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(ShutdownRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(MysqlCtlServer).Shutdown(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
func _MysqlCtl_RunMysqlUpgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(RunMysqlUpgradeRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(MysqlCtlServer).RunMysqlUpgrade(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
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{},
}