-
Notifications
You must be signed in to change notification settings - Fork 1
/
influxdb_proxy.pb.go
376 lines (339 loc) · 14.4 KB
/
influxdb_proxy.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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: influxdb_proxy.proto
package influxdb
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
//
//InfluxdbProxy请求
type InfluxdbProxyRequest struct {
//
//数据库
Db string `protobuf:"bytes,1,opt,name=db,proto3" json:"db" form:"db"`
//
//SQL语句
Q string `protobuf:"bytes,2,opt,name=q,proto3" json:"q" form:"q"`
//
//返回时间戳的精度
Epoch string `protobuf:"bytes,3,opt,name=epoch,proto3" json:"epoch" form:"epoch"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InfluxdbProxyRequest) Reset() { *m = InfluxdbProxyRequest{} }
func (m *InfluxdbProxyRequest) String() string { return proto.CompactTextString(m) }
func (*InfluxdbProxyRequest) ProtoMessage() {}
func (*InfluxdbProxyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d9db21d273b69a2f, []int{0}
}
func (m *InfluxdbProxyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InfluxdbProxyRequest.Unmarshal(m, b)
}
func (m *InfluxdbProxyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InfluxdbProxyRequest.Marshal(b, m, deterministic)
}
func (m *InfluxdbProxyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_InfluxdbProxyRequest.Merge(m, src)
}
func (m *InfluxdbProxyRequest) XXX_Size() int {
return xxx_messageInfo_InfluxdbProxyRequest.Size(m)
}
func (m *InfluxdbProxyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_InfluxdbProxyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_InfluxdbProxyRequest proto.InternalMessageInfo
func (m *InfluxdbProxyRequest) GetDb() string {
if m != nil {
return m.Db
}
return ""
}
func (m *InfluxdbProxyRequest) GetQ() string {
if m != nil {
return m.Q
}
return ""
}
func (m *InfluxdbProxyRequest) GetEpoch() string {
if m != nil {
return m.Epoch
}
return ""
}
//
//InfluxdbProxy返回
type InfluxdbProxyResponse struct {
//
//返回的数据
Results []*InfluxdbProxyResponse_Results `protobuf:"bytes,1,rep,name=results,proto3" json:"results" form:"results"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InfluxdbProxyResponse) Reset() { *m = InfluxdbProxyResponse{} }
func (m *InfluxdbProxyResponse) String() string { return proto.CompactTextString(m) }
func (*InfluxdbProxyResponse) ProtoMessage() {}
func (*InfluxdbProxyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d9db21d273b69a2f, []int{1}
}
func (m *InfluxdbProxyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InfluxdbProxyResponse.Unmarshal(m, b)
}
func (m *InfluxdbProxyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InfluxdbProxyResponse.Marshal(b, m, deterministic)
}
func (m *InfluxdbProxyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_InfluxdbProxyResponse.Merge(m, src)
}
func (m *InfluxdbProxyResponse) XXX_Size() int {
return xxx_messageInfo_InfluxdbProxyResponse.Size(m)
}
func (m *InfluxdbProxyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_InfluxdbProxyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_InfluxdbProxyResponse proto.InternalMessageInfo
func (m *InfluxdbProxyResponse) GetResults() []*InfluxdbProxyResponse_Results {
if m != nil {
return m.Results
}
return nil
}
type InfluxdbProxyResponse_Results struct {
//
//series
Series []*InfluxdbProxyResponse_Results_Series `protobuf:"bytes,1,rep,name=series,proto3" json:"series" form:"series"`
//
//error
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error" form:"error"`
//
//statement_id
StatementId int32 `protobuf:"varint,3,opt,name=statement_id,json=statementId,proto3" json:"statement_id" form:"statement_id"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InfluxdbProxyResponse_Results) Reset() { *m = InfluxdbProxyResponse_Results{} }
func (m *InfluxdbProxyResponse_Results) String() string { return proto.CompactTextString(m) }
func (*InfluxdbProxyResponse_Results) ProtoMessage() {}
func (*InfluxdbProxyResponse_Results) Descriptor() ([]byte, []int) {
return fileDescriptor_d9db21d273b69a2f, []int{1, 0}
}
func (m *InfluxdbProxyResponse_Results) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InfluxdbProxyResponse_Results.Unmarshal(m, b)
}
func (m *InfluxdbProxyResponse_Results) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InfluxdbProxyResponse_Results.Marshal(b, m, deterministic)
}
func (m *InfluxdbProxyResponse_Results) XXX_Merge(src proto.Message) {
xxx_messageInfo_InfluxdbProxyResponse_Results.Merge(m, src)
}
func (m *InfluxdbProxyResponse_Results) XXX_Size() int {
return xxx_messageInfo_InfluxdbProxyResponse_Results.Size(m)
}
func (m *InfluxdbProxyResponse_Results) XXX_DiscardUnknown() {
xxx_messageInfo_InfluxdbProxyResponse_Results.DiscardUnknown(m)
}
var xxx_messageInfo_InfluxdbProxyResponse_Results proto.InternalMessageInfo
func (m *InfluxdbProxyResponse_Results) GetSeries() []*InfluxdbProxyResponse_Results_Series {
if m != nil {
return m.Series
}
return nil
}
func (m *InfluxdbProxyResponse_Results) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *InfluxdbProxyResponse_Results) GetStatementId() int32 {
if m != nil {
return m.StatementId
}
return 0
}
type InfluxdbProxyResponse_Results_Series struct {
//
//指标值(是一个二维表),根据sql不同而不同,他的列在columns标明
Values *types.Value `protobuf:"bytes,1,opt,name=values,proto3" json:"values" form:"values"`
//
//表名
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
//
//列名
Columns []string `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns" form:"columns"`
//
//tags
Tags *types.Struct `protobuf:"bytes,4,opt,name=tags,proto3" json:"tags" form:"tags"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InfluxdbProxyResponse_Results_Series) Reset() { *m = InfluxdbProxyResponse_Results_Series{} }
func (m *InfluxdbProxyResponse_Results_Series) String() string { return proto.CompactTextString(m) }
func (*InfluxdbProxyResponse_Results_Series) ProtoMessage() {}
func (*InfluxdbProxyResponse_Results_Series) Descriptor() ([]byte, []int) {
return fileDescriptor_d9db21d273b69a2f, []int{1, 0, 0}
}
func (m *InfluxdbProxyResponse_Results_Series) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InfluxdbProxyResponse_Results_Series.Unmarshal(m, b)
}
func (m *InfluxdbProxyResponse_Results_Series) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InfluxdbProxyResponse_Results_Series.Marshal(b, m, deterministic)
}
func (m *InfluxdbProxyResponse_Results_Series) XXX_Merge(src proto.Message) {
xxx_messageInfo_InfluxdbProxyResponse_Results_Series.Merge(m, src)
}
func (m *InfluxdbProxyResponse_Results_Series) XXX_Size() int {
return xxx_messageInfo_InfluxdbProxyResponse_Results_Series.Size(m)
}
func (m *InfluxdbProxyResponse_Results_Series) XXX_DiscardUnknown() {
xxx_messageInfo_InfluxdbProxyResponse_Results_Series.DiscardUnknown(m)
}
var xxx_messageInfo_InfluxdbProxyResponse_Results_Series proto.InternalMessageInfo
func (m *InfluxdbProxyResponse_Results_Series) GetValues() *types.Value {
if m != nil {
return m.Values
}
return nil
}
func (m *InfluxdbProxyResponse_Results_Series) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *InfluxdbProxyResponse_Results_Series) GetColumns() []string {
if m != nil {
return m.Columns
}
return nil
}
func (m *InfluxdbProxyResponse_Results_Series) GetTags() *types.Struct {
if m != nil {
return m.Tags
}
return nil
}
//
//InfluxdbProxyApi返回
type InfluxdbProxyResponseWrapper struct {
//
//返回码
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
//
//返回码解释
CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
//
//错误详情
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
//
//返回数据
Data *InfluxdbProxyResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InfluxdbProxyResponseWrapper) Reset() { *m = InfluxdbProxyResponseWrapper{} }
func (m *InfluxdbProxyResponseWrapper) String() string { return proto.CompactTextString(m) }
func (*InfluxdbProxyResponseWrapper) ProtoMessage() {}
func (*InfluxdbProxyResponseWrapper) Descriptor() ([]byte, []int) {
return fileDescriptor_d9db21d273b69a2f, []int{2}
}
func (m *InfluxdbProxyResponseWrapper) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InfluxdbProxyResponseWrapper.Unmarshal(m, b)
}
func (m *InfluxdbProxyResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InfluxdbProxyResponseWrapper.Marshal(b, m, deterministic)
}
func (m *InfluxdbProxyResponseWrapper) XXX_Merge(src proto.Message) {
xxx_messageInfo_InfluxdbProxyResponseWrapper.Merge(m, src)
}
func (m *InfluxdbProxyResponseWrapper) XXX_Size() int {
return xxx_messageInfo_InfluxdbProxyResponseWrapper.Size(m)
}
func (m *InfluxdbProxyResponseWrapper) XXX_DiscardUnknown() {
xxx_messageInfo_InfluxdbProxyResponseWrapper.DiscardUnknown(m)
}
var xxx_messageInfo_InfluxdbProxyResponseWrapper proto.InternalMessageInfo
func (m *InfluxdbProxyResponseWrapper) GetCode() int32 {
if m != nil {
return m.Code
}
return 0
}
func (m *InfluxdbProxyResponseWrapper) GetCodeExplain() string {
if m != nil {
return m.CodeExplain
}
return ""
}
func (m *InfluxdbProxyResponseWrapper) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *InfluxdbProxyResponseWrapper) GetData() *InfluxdbProxyResponse {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*InfluxdbProxyRequest)(nil), "influxdb.InfluxdbProxyRequest")
proto.RegisterType((*InfluxdbProxyResponse)(nil), "influxdb.InfluxdbProxyResponse")
proto.RegisterType((*InfluxdbProxyResponse_Results)(nil), "influxdb.InfluxdbProxyResponse.Results")
proto.RegisterType((*InfluxdbProxyResponse_Results_Series)(nil), "influxdb.InfluxdbProxyResponse.Results.Series")
proto.RegisterType((*InfluxdbProxyResponseWrapper)(nil), "influxdb.InfluxdbProxyResponseWrapper")
}
func init() { proto.RegisterFile("influxdb_proxy.proto", fileDescriptor_d9db21d273b69a2f) }
var fileDescriptor_d9db21d273b69a2f = []byte{
// 515 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xcd, 0x6e, 0xd4, 0x3c,
0x14, 0x55, 0x26, 0xf3, 0xd3, 0x71, 0xa6, 0xdf, 0x07, 0xa6, 0xb4, 0x51, 0x54, 0x94, 0x91, 0x91,
0x60, 0x16, 0xe0, 0x4a, 0x65, 0x83, 0x2a, 0x36, 0x8c, 0x60, 0xd1, 0x1d, 0x72, 0x05, 0x88, 0x55,
0x95, 0x1f, 0x4f, 0x1a, 0x29, 0x89, 0x33, 0xb6, 0x83, 0xa6, 0x6f, 0xc2, 0x1b, 0xf0, 0x52, 0x28,
0x2f, 0xc0, 0x2e, 0x4f, 0x80, 0xfc, 0x13, 0x26, 0x82, 0x0a, 0x58, 0x25, 0xbe, 0xe7, 0xdc, 0x7b,
0xce, 0xf1, 0x35, 0x38, 0xca, 0xab, 0x4d, 0xd1, 0xec, 0xd2, 0xf8, 0xba, 0xe6, 0x6c, 0x77, 0x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