-
Notifications
You must be signed in to change notification settings - Fork 54
/
moc_common_logging.pb.go
737 lines (647 loc) · 24.9 KB
/
moc_common_logging.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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: admin/logging/moc_common_logging.proto
package admin
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
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 VerboseLevel int32
const (
VerboseLevel_Min_Level VerboseLevel = 0
VerboseLevel_Max_Level VerboseLevel = 9
)
var VerboseLevel_name = map[int32]string{
0: "Min_Level",
9: "Max_Level",
}
var VerboseLevel_value = map[string]int32{
"Min_Level": 0,
"Max_Level": 9,
}
func (x VerboseLevel) String() string {
return proto.EnumName(VerboseLevel_name, int32(x))
}
func (VerboseLevel) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{0}
}
type LogRotateRequest struct {
LogRotation *LogRotation `protobuf:"bytes,1,opt,name=logRotation,proto3" json:"logRotation,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogRotateRequest) Reset() { *m = LogRotateRequest{} }
func (m *LogRotateRequest) String() string { return proto.CompactTextString(m) }
func (*LogRotateRequest) ProtoMessage() {}
func (*LogRotateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{0}
}
func (m *LogRotateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogRotateRequest.Unmarshal(m, b)
}
func (m *LogRotateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogRotateRequest.Marshal(b, m, deterministic)
}
func (m *LogRotateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogRotateRequest.Merge(m, src)
}
func (m *LogRotateRequest) XXX_Size() int {
return xxx_messageInfo_LogRotateRequest.Size(m)
}
func (m *LogRotateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LogRotateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LogRotateRequest proto.InternalMessageInfo
func (m *LogRotateRequest) GetLogRotation() *LogRotation {
if m != nil {
return m.LogRotation
}
return nil
}
type LogRotateResponse struct {
Result bool `protobuf:"varint,1,opt,name=Result,proto3" json:"Result,omitempty"`
Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogRotateResponse) Reset() { *m = LogRotateResponse{} }
func (m *LogRotateResponse) String() string { return proto.CompactTextString(m) }
func (*LogRotateResponse) ProtoMessage() {}
func (*LogRotateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{1}
}
func (m *LogRotateResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogRotateResponse.Unmarshal(m, b)
}
func (m *LogRotateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogRotateResponse.Marshal(b, m, deterministic)
}
func (m *LogRotateResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogRotateResponse.Merge(m, src)
}
func (m *LogRotateResponse) XXX_Size() int {
return xxx_messageInfo_LogRotateResponse.Size(m)
}
func (m *LogRotateResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LogRotateResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LogRotateResponse proto.InternalMessageInfo
func (m *LogRotateResponse) GetResult() bool {
if m != nil {
return m.Result
}
return false
}
func (m *LogRotateResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
type LogRotation struct {
Minutes int32 `protobuf:"varint,1,opt,name=minutes,proto3" json:"minutes,omitempty"`
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
EnableTime bool `protobuf:"varint,3,opt,name=enableTime,proto3" json:"enableTime,omitempty"`
EnableSize bool `protobuf:"varint,4,opt,name=enableSize,proto3" json:"enableSize,omitempty"`
DisableTime bool `protobuf:"varint,5,opt,name=disableTime,proto3" json:"disableTime,omitempty"`
DisableSize bool `protobuf:"varint,6,opt,name=disableSize,proto3" json:"disableSize,omitempty"`
Limit int32 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogRotation) Reset() { *m = LogRotation{} }
func (m *LogRotation) String() string { return proto.CompactTextString(m) }
func (*LogRotation) ProtoMessage() {}
func (*LogRotation) Descriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{2}
}
func (m *LogRotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogRotation.Unmarshal(m, b)
}
func (m *LogRotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogRotation.Marshal(b, m, deterministic)
}
func (m *LogRotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogRotation.Merge(m, src)
}
func (m *LogRotation) XXX_Size() int {
return xxx_messageInfo_LogRotation.Size(m)
}
func (m *LogRotation) XXX_DiscardUnknown() {
xxx_messageInfo_LogRotation.DiscardUnknown(m)
}
var xxx_messageInfo_LogRotation proto.InternalMessageInfo
func (m *LogRotation) GetMinutes() int32 {
if m != nil {
return m.Minutes
}
return 0
}
func (m *LogRotation) GetSize() int32 {
if m != nil {
return m.Size
}
return 0
}
func (m *LogRotation) GetEnableTime() bool {
if m != nil {
return m.EnableTime
}
return false
}
func (m *LogRotation) GetEnableSize() bool {
if m != nil {
return m.EnableSize
}
return false
}
func (m *LogRotation) GetDisableTime() bool {
if m != nil {
return m.DisableTime
}
return false
}
func (m *LogRotation) GetDisableSize() bool {
if m != nil {
return m.DisableSize
}
return false
}
func (m *LogRotation) GetLimit() int32 {
if m != nil {
return m.Limit
}
return 0
}
type LogRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogRequest) Reset() { *m = LogRequest{} }
func (m *LogRequest) String() string { return proto.CompactTextString(m) }
func (*LogRequest) ProtoMessage() {}
func (*LogRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{3}
}
func (m *LogRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogRequest.Unmarshal(m, b)
}
func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogRequest.Marshal(b, m, deterministic)
}
func (m *LogRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogRequest.Merge(m, src)
}
func (m *LogRequest) XXX_Size() int {
return xxx_messageInfo_LogRequest.Size(m)
}
func (m *LogRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LogRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LogRequest proto.InternalMessageInfo
type LogFileResponse struct {
File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
Done *wrappers.BoolValue `protobuf:"bytes,2,opt,name=done,proto3" json:"done,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogFileResponse) Reset() { *m = LogFileResponse{} }
func (m *LogFileResponse) String() string { return proto.CompactTextString(m) }
func (*LogFileResponse) ProtoMessage() {}
func (*LogFileResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{4}
}
func (m *LogFileResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogFileResponse.Unmarshal(m, b)
}
func (m *LogFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogFileResponse.Marshal(b, m, deterministic)
}
func (m *LogFileResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogFileResponse.Merge(m, src)
}
func (m *LogFileResponse) XXX_Size() int {
return xxx_messageInfo_LogFileResponse.Size(m)
}
func (m *LogFileResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LogFileResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LogFileResponse proto.InternalMessageInfo
func (m *LogFileResponse) GetFile() []byte {
if m != nil {
return m.File
}
return nil
}
func (m *LogFileResponse) GetDone() *wrappers.BoolValue {
if m != nil {
return m.Done
}
return nil
}
func (m *LogFileResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
type SetResponse struct {
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetResponse) Reset() { *m = SetResponse{} }
func (m *SetResponse) String() string { return proto.CompactTextString(m) }
func (*SetResponse) ProtoMessage() {}
func (*SetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{5}
}
func (m *SetResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetResponse.Unmarshal(m, b)
}
func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetResponse.Marshal(b, m, deterministic)
}
func (m *SetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetResponse.Merge(m, src)
}
func (m *SetResponse) XXX_Size() int {
return xxx_messageInfo_SetResponse.Size(m)
}
func (m *SetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SetResponse proto.InternalMessageInfo
func (m *SetResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
type SetRequest struct {
Verbositylevel int32 `protobuf:"varint,1,opt,name=verbositylevel,proto3" json:"verbositylevel,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetRequest) Reset() { *m = SetRequest{} }
func (m *SetRequest) String() string { return proto.CompactTextString(m) }
func (*SetRequest) ProtoMessage() {}
func (*SetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{6}
}
func (m *SetRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetRequest.Unmarshal(m, b)
}
func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetRequest.Marshal(b, m, deterministic)
}
func (m *SetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetRequest.Merge(m, src)
}
func (m *SetRequest) XXX_Size() int {
return xxx_messageInfo_SetRequest.Size(m)
}
func (m *SetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetRequest proto.InternalMessageInfo
func (m *SetRequest) GetVerbositylevel() int32 {
if m != nil {
return m.Verbositylevel
}
return 0
}
type GetRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetRequest) Reset() { *m = GetRequest{} }
func (m *GetRequest) String() string { return proto.CompactTextString(m) }
func (*GetRequest) ProtoMessage() {}
func (*GetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{7}
}
func (m *GetRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetRequest.Unmarshal(m, b)
}
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
}
func (m *GetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetRequest.Merge(m, src)
}
func (m *GetRequest) XXX_Size() int {
return xxx_messageInfo_GetRequest.Size(m)
}
func (m *GetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetRequest proto.InternalMessageInfo
type GetResponse struct {
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetResponse) Reset() { *m = GetResponse{} }
func (m *GetResponse) String() string { return proto.CompactTextString(m) }
func (*GetResponse) ProtoMessage() {}
func (*GetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6fcdf0c7be3b2171, []int{8}
}
func (m *GetResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetResponse.Unmarshal(m, b)
}
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
}
func (m *GetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetResponse.Merge(m, src)
}
func (m *GetResponse) XXX_Size() int {
return xxx_messageInfo_GetResponse.Size(m)
}
func (m *GetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetResponse proto.InternalMessageInfo
func (m *GetResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *GetResponse) GetLevel() string {
if m != nil {
return m.Level
}
return ""
}
func init() {
proto.RegisterEnum("moc.common.admin.VerboseLevel", VerboseLevel_name, VerboseLevel_value)
proto.RegisterType((*LogRotateRequest)(nil), "moc.common.admin.LogRotateRequest")
proto.RegisterType((*LogRotateResponse)(nil), "moc.common.admin.LogRotateResponse")
proto.RegisterType((*LogRotation)(nil), "moc.common.admin.LogRotation")
proto.RegisterType((*LogRequest)(nil), "moc.common.admin.LogRequest")
proto.RegisterType((*LogFileResponse)(nil), "moc.common.admin.LogFileResponse")
proto.RegisterType((*SetResponse)(nil), "moc.common.admin.SetResponse")
proto.RegisterType((*SetRequest)(nil), "moc.common.admin.SetRequest")
proto.RegisterType((*GetRequest)(nil), "moc.common.admin.GetRequest")
proto.RegisterType((*GetResponse)(nil), "moc.common.admin.GetResponse")
}
func init() {
proto.RegisterFile("admin/logging/moc_common_logging.proto", fileDescriptor_6fcdf0c7be3b2171)
}
var fileDescriptor_6fcdf0c7be3b2171 = []byte{
// 540 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0x4d, 0x6f, 0xd3, 0x40,
0x10, 0xad, 0x9b, 0x8f, 0x26, 0xe3, 0x00, 0x61, 0x55, 0xa1, 0x28, 0xa2, 0x55, 0x70, 0xa5, 0xaa,
0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x60, 0x71, 0x07, 0xba, 0x1f, 0x65, 0x32, 0x63, 0xd0, 0xdf, 0x63, 0x18, 0xfe, 0x28, 0x61, 0x77,
0xfc, 0x7b, 0x1f, 0x3a, 0x13, 0x8a, 0xce, 0x23, 0x4c, 0xb4, 0xf8, 0x00, 0x0d, 0x1f, 0xb5, 0x78,
0xb8, 0x7b, 0x4f, 0xcd, 0xd5, 0x86, 0x8f, 0x76, 0x76, 0xeb, 0x03, 0x70, 0xf6, 0x9e, 0x5b, 0x62,
0x0a, 0x6d, 0xb3, 0xbd, 0xc2, 0xb9, 0x79, 0xed, 0x37, 0xbf, 0x97, 0xe1, 0xc9, 0xad, 0x9c, 0x8d,
0xad, 0x78, 0x03, 0x8d, 0xe9, 0xee, 0x0b, 0x6e, 0x13, 0x1f, 0x1e, 0xdd, 0xd0, 0xad, 0x5c, 0xde,
0x43, 0xc7, 0x47, 0x6d, 0xd2, 0xd9, 0x61, 0xe5, 0xdf, 0x6a, 0xe5, 0xd7, 0xad, 0x2e, 0x9e, 0x7e,
0x7e, 0x1c, 0x49, 0xfd, 0x25, 0x9f, 0x17, 0x24, 0x2f, 0x96, 0x8b, 0x94, 0x32, 0x5a, 0xe9, 0xe2,
0xef, 0xc5, 0x4b, 0xd7, 0x0b, 0xcf, 0x48, 0x3d, 0x96, 0xce, 0xdb, 0xbc, 0x6d, 0x2f, 0xfe, 0x06,
0x00, 0x00, 0xff, 0xff, 0x34, 0x56, 0x2a, 0xaa, 0x8b, 0x04, 0x00, 0x00,
}
// 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.SupportPackageIsVersion4
// LogAgentClient is the client API for LogAgent service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type LogAgentClient interface {
Get(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (LogAgent_GetClient, error)
Rotate(ctx context.Context, in *LogRotateRequest, opts ...grpc.CallOption) (*LogRotateResponse, error)
Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
GetLevel(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}
type logAgentClient struct {
cc *grpc.ClientConn
}
func NewLogAgentClient(cc *grpc.ClientConn) LogAgentClient {
return &logAgentClient{cc}
}
func (c *logAgentClient) Get(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (LogAgent_GetClient, error) {
stream, err := c.cc.NewStream(ctx, &_LogAgent_serviceDesc.Streams[0], "/moc.common.admin.LogAgent/Get", opts...)
if err != nil {
return nil, err
}
x := &logAgentGetClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type LogAgent_GetClient interface {
Recv() (*LogFileResponse, error)
grpc.ClientStream
}
type logAgentGetClient struct {
grpc.ClientStream
}
func (x *logAgentGetClient) Recv() (*LogFileResponse, error) {
m := new(LogFileResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *logAgentClient) Rotate(ctx context.Context, in *LogRotateRequest, opts ...grpc.CallOption) (*LogRotateResponse, error) {
out := new(LogRotateResponse)
err := c.cc.Invoke(ctx, "/moc.common.admin.LogAgent/Rotate", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *logAgentClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) {
out := new(SetResponse)
err := c.cc.Invoke(ctx, "/moc.common.admin.LogAgent/Set", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *logAgentClient) GetLevel(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
out := new(GetResponse)
err := c.cc.Invoke(ctx, "/moc.common.admin.LogAgent/GetLevel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// LogAgentServer is the server API for LogAgent service.
type LogAgentServer interface {
Get(*LogRequest, LogAgent_GetServer) error
Rotate(context.Context, *LogRotateRequest) (*LogRotateResponse, error)
Set(context.Context, *SetRequest) (*SetResponse, error)
GetLevel(context.Context, *GetRequest) (*GetResponse, error)
}
// UnimplementedLogAgentServer can be embedded to have forward compatible implementations.
type UnimplementedLogAgentServer struct {
}
func (*UnimplementedLogAgentServer) Get(req *LogRequest, srv LogAgent_GetServer) error {
return status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedLogAgentServer) Rotate(ctx context.Context, req *LogRotateRequest) (*LogRotateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Rotate not implemented")
}
func (*UnimplementedLogAgentServer) Set(ctx context.Context, req *SetRequest) (*SetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Set not implemented")
}
func (*UnimplementedLogAgentServer) GetLevel(ctx context.Context, req *GetRequest) (*GetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetLevel not implemented")
}
func RegisterLogAgentServer(s *grpc.Server, srv LogAgentServer) {
s.RegisterService(&_LogAgent_serviceDesc, srv)
}
func _LogAgent_Get_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(LogRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(LogAgentServer).Get(m, &logAgentGetServer{stream})
}
type LogAgent_GetServer interface {
Send(*LogFileResponse) error
grpc.ServerStream
}
type logAgentGetServer struct {
grpc.ServerStream
}
func (x *logAgentGetServer) Send(m *LogFileResponse) error {
return x.ServerStream.SendMsg(m)
}
func _LogAgent_Rotate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LogRotateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LogAgentServer).Rotate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/moc.common.admin.LogAgent/Rotate",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LogAgentServer).Rotate(ctx, req.(*LogRotateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _LogAgent_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LogAgentServer).Set(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/moc.common.admin.LogAgent/Set",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LogAgentServer).Set(ctx, req.(*SetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _LogAgent_GetLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LogAgentServer).GetLevel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/moc.common.admin.LogAgent/GetLevel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LogAgentServer).GetLevel(ctx, req.(*GetRequest))
}
return interceptor(ctx, in, info, handler)
}
var _LogAgent_serviceDesc = grpc.ServiceDesc{
ServiceName: "moc.common.admin.LogAgent",
HandlerType: (*LogAgentServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Rotate",
Handler: _LogAgent_Rotate_Handler,
},
{
MethodName: "Set",
Handler: _LogAgent_Set_Handler,
},
{
MethodName: "GetLevel",
Handler: _LogAgent_GetLevel_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "Get",
Handler: _LogAgent_Get_Handler,
ServerStreams: true,
},
},
Metadata: "admin/logging/moc_common_logging.proto",
}