forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.pb.go
741 lines (669 loc) · 26.2 KB
/
admin.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
738
739
740
741
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/admin.proto
package peer // import "github.com/hyperledger/fabric/protos/peer"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import common "github.com/hyperledger/fabric/protos/common"
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.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ServerStatus_StatusCode int32
const (
ServerStatus_UNDEFINED ServerStatus_StatusCode = 0
ServerStatus_STARTED ServerStatus_StatusCode = 1
ServerStatus_STOPPED ServerStatus_StatusCode = 2
ServerStatus_PAUSED ServerStatus_StatusCode = 3
ServerStatus_ERROR ServerStatus_StatusCode = 4
ServerStatus_UNKNOWN ServerStatus_StatusCode = 5
)
var ServerStatus_StatusCode_name = map[int32]string{
0: "UNDEFINED",
1: "STARTED",
2: "STOPPED",
3: "PAUSED",
4: "ERROR",
5: "UNKNOWN",
}
var ServerStatus_StatusCode_value = map[string]int32{
"UNDEFINED": 0,
"STARTED": 1,
"STOPPED": 2,
"PAUSED": 3,
"ERROR": 4,
"UNKNOWN": 5,
}
func (x ServerStatus_StatusCode) String() string {
return proto.EnumName(ServerStatus_StatusCode_name, int32(x))
}
func (ServerStatus_StatusCode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_admin_b2904393863b6bc5, []int{0, 0}
}
type ServerStatus struct {
Status ServerStatus_StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=protos.ServerStatus_StatusCode" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerStatus) Reset() { *m = ServerStatus{} }
func (m *ServerStatus) String() string { return proto.CompactTextString(m) }
func (*ServerStatus) ProtoMessage() {}
func (*ServerStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_admin_b2904393863b6bc5, []int{0}
}
func (m *ServerStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerStatus.Unmarshal(m, b)
}
func (m *ServerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerStatus.Marshal(b, m, deterministic)
}
func (dst *ServerStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerStatus.Merge(dst, src)
}
func (m *ServerStatus) XXX_Size() int {
return xxx_messageInfo_ServerStatus.Size(m)
}
func (m *ServerStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ServerStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ServerStatus proto.InternalMessageInfo
func (m *ServerStatus) GetStatus() ServerStatus_StatusCode {
if m != nil {
return m.Status
}
return ServerStatus_UNDEFINED
}
type LogLevelRequest struct {
LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule,proto3" json:"log_module,omitempty"`
LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogLevelRequest) Reset() { *m = LogLevelRequest{} }
func (m *LogLevelRequest) String() string { return proto.CompactTextString(m) }
func (*LogLevelRequest) ProtoMessage() {}
func (*LogLevelRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_admin_b2904393863b6bc5, []int{1}
}
func (m *LogLevelRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogLevelRequest.Unmarshal(m, b)
}
func (m *LogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogLevelRequest.Marshal(b, m, deterministic)
}
func (dst *LogLevelRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogLevelRequest.Merge(dst, src)
}
func (m *LogLevelRequest) XXX_Size() int {
return xxx_messageInfo_LogLevelRequest.Size(m)
}
func (m *LogLevelRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LogLevelRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LogLevelRequest proto.InternalMessageInfo
func (m *LogLevelRequest) GetLogModule() string {
if m != nil {
return m.LogModule
}
return ""
}
func (m *LogLevelRequest) GetLogLevel() string {
if m != nil {
return m.LogLevel
}
return ""
}
type LogLevelResponse struct {
LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule,proto3" json:"log_module,omitempty"`
LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogLevelResponse) Reset() { *m = LogLevelResponse{} }
func (m *LogLevelResponse) String() string { return proto.CompactTextString(m) }
func (*LogLevelResponse) ProtoMessage() {}
func (*LogLevelResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_admin_b2904393863b6bc5, []int{2}
}
func (m *LogLevelResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogLevelResponse.Unmarshal(m, b)
}
func (m *LogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogLevelResponse.Marshal(b, m, deterministic)
}
func (dst *LogLevelResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogLevelResponse.Merge(dst, src)
}
func (m *LogLevelResponse) XXX_Size() int {
return xxx_messageInfo_LogLevelResponse.Size(m)
}
func (m *LogLevelResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LogLevelResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LogLevelResponse proto.InternalMessageInfo
func (m *LogLevelResponse) GetLogModule() string {
if m != nil {
return m.LogModule
}
return ""
}
func (m *LogLevelResponse) GetLogLevel() string {
if m != nil {
return m.LogLevel
}
return ""
}
type LogSpecRequest struct {
LogSpec string `protobuf:"bytes,1,opt,name=log_spec,json=logSpec,proto3" json:"log_spec,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogSpecRequest) Reset() { *m = LogSpecRequest{} }
func (m *LogSpecRequest) String() string { return proto.CompactTextString(m) }
func (*LogSpecRequest) ProtoMessage() {}
func (*LogSpecRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_admin_b2904393863b6bc5, []int{3}
}
func (m *LogSpecRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogSpecRequest.Unmarshal(m, b)
}
func (m *LogSpecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogSpecRequest.Marshal(b, m, deterministic)
}
func (dst *LogSpecRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogSpecRequest.Merge(dst, src)
}
func (m *LogSpecRequest) XXX_Size() int {
return xxx_messageInfo_LogSpecRequest.Size(m)
}
func (m *LogSpecRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LogSpecRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LogSpecRequest proto.InternalMessageInfo
func (m *LogSpecRequest) GetLogSpec() string {
if m != nil {
return m.LogSpec
}
return ""
}
type LogSpecResponse struct {
LogSpec string `protobuf:"bytes,1,opt,name=log_spec,json=logSpec,proto3" json:"log_spec,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 *LogSpecResponse) Reset() { *m = LogSpecResponse{} }
func (m *LogSpecResponse) String() string { return proto.CompactTextString(m) }
func (*LogSpecResponse) ProtoMessage() {}
func (*LogSpecResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_admin_b2904393863b6bc5, []int{4}
}
func (m *LogSpecResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogSpecResponse.Unmarshal(m, b)
}
func (m *LogSpecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogSpecResponse.Marshal(b, m, deterministic)
}
func (dst *LogSpecResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogSpecResponse.Merge(dst, src)
}
func (m *LogSpecResponse) XXX_Size() int {
return xxx_messageInfo_LogSpecResponse.Size(m)
}
func (m *LogSpecResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LogSpecResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LogSpecResponse proto.InternalMessageInfo
func (m *LogSpecResponse) GetLogSpec() string {
if m != nil {
return m.LogSpec
}
return ""
}
func (m *LogSpecResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
type AdminOperation struct {
// Types that are valid to be assigned to Content:
// *AdminOperation_LogReq
// *AdminOperation_LogSpecReq
Content isAdminOperation_Content `protobuf_oneof:"content"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AdminOperation) Reset() { *m = AdminOperation{} }
func (m *AdminOperation) String() string { return proto.CompactTextString(m) }
func (*AdminOperation) ProtoMessage() {}
func (*AdminOperation) Descriptor() ([]byte, []int) {
return fileDescriptor_admin_b2904393863b6bc5, []int{5}
}
func (m *AdminOperation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AdminOperation.Unmarshal(m, b)
}
func (m *AdminOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AdminOperation.Marshal(b, m, deterministic)
}
func (dst *AdminOperation) XXX_Merge(src proto.Message) {
xxx_messageInfo_AdminOperation.Merge(dst, src)
}
func (m *AdminOperation) XXX_Size() int {
return xxx_messageInfo_AdminOperation.Size(m)
}
func (m *AdminOperation) XXX_DiscardUnknown() {
xxx_messageInfo_AdminOperation.DiscardUnknown(m)
}
var xxx_messageInfo_AdminOperation proto.InternalMessageInfo
type isAdminOperation_Content interface {
isAdminOperation_Content()
}
type AdminOperation_LogReq struct {
LogReq *LogLevelRequest `protobuf:"bytes,1,opt,name=logReq,proto3,oneof"`
}
type AdminOperation_LogSpecReq struct {
LogSpecReq *LogSpecRequest `protobuf:"bytes,2,opt,name=logSpecReq,proto3,oneof"`
}
func (*AdminOperation_LogReq) isAdminOperation_Content() {}
func (*AdminOperation_LogSpecReq) isAdminOperation_Content() {}
func (m *AdminOperation) GetContent() isAdminOperation_Content {
if m != nil {
return m.Content
}
return nil
}
func (m *AdminOperation) GetLogReq() *LogLevelRequest {
if x, ok := m.GetContent().(*AdminOperation_LogReq); ok {
return x.LogReq
}
return nil
}
func (m *AdminOperation) GetLogSpecReq() *LogSpecRequest {
if x, ok := m.GetContent().(*AdminOperation_LogSpecReq); ok {
return x.LogSpecReq
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*AdminOperation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _AdminOperation_OneofMarshaler, _AdminOperation_OneofUnmarshaler, _AdminOperation_OneofSizer, []interface{}{
(*AdminOperation_LogReq)(nil),
(*AdminOperation_LogSpecReq)(nil),
}
}
func _AdminOperation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*AdminOperation)
// content
switch x := m.Content.(type) {
case *AdminOperation_LogReq:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.LogReq); err != nil {
return err
}
case *AdminOperation_LogSpecReq:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.LogSpecReq); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("AdminOperation.Content has unexpected type %T", x)
}
return nil
}
func _AdminOperation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*AdminOperation)
switch tag {
case 1: // content.logReq
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(LogLevelRequest)
err := b.DecodeMessage(msg)
m.Content = &AdminOperation_LogReq{msg}
return true, err
case 2: // content.logSpecReq
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(LogSpecRequest)
err := b.DecodeMessage(msg)
m.Content = &AdminOperation_LogSpecReq{msg}
return true, err
default:
return false, nil
}
}
func _AdminOperation_OneofSizer(msg proto.Message) (n int) {
m := msg.(*AdminOperation)
// content
switch x := m.Content.(type) {
case *AdminOperation_LogReq:
s := proto.Size(x.LogReq)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AdminOperation_LogSpecReq:
s := proto.Size(x.LogSpecReq)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
func init() {
proto.RegisterType((*ServerStatus)(nil), "protos.ServerStatus")
proto.RegisterType((*LogLevelRequest)(nil), "protos.LogLevelRequest")
proto.RegisterType((*LogLevelResponse)(nil), "protos.LogLevelResponse")
proto.RegisterType((*LogSpecRequest)(nil), "protos.LogSpecRequest")
proto.RegisterType((*LogSpecResponse)(nil), "protos.LogSpecResponse")
proto.RegisterType((*AdminOperation)(nil), "protos.AdminOperation")
proto.RegisterEnum("protos.ServerStatus_StatusCode", ServerStatus_StatusCode_name, ServerStatus_StatusCode_value)
}
// 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
// AdminClient is the client API for Admin service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AdminClient interface {
GetStatus(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*ServerStatus, error)
StartServer(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*ServerStatus, error)
GetModuleLogLevel(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogLevelResponse, error)
SetModuleLogLevel(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogLevelResponse, error)
RevertLogLevels(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*empty.Empty, error)
GetLogSpec(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogSpecResponse, error)
SetLogSpec(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogSpecResponse, error)
}
type adminClient struct {
cc *grpc.ClientConn
}
func NewAdminClient(cc *grpc.ClientConn) AdminClient {
return &adminClient{cc}
}
func (c *adminClient) GetStatus(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*ServerStatus, error) {
out := new(ServerStatus)
err := c.cc.Invoke(ctx, "/protos.Admin/GetStatus", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminClient) StartServer(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*ServerStatus, error) {
out := new(ServerStatus)
err := c.cc.Invoke(ctx, "/protos.Admin/StartServer", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminClient) GetModuleLogLevel(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogLevelResponse, error) {
out := new(LogLevelResponse)
err := c.cc.Invoke(ctx, "/protos.Admin/GetModuleLogLevel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminClient) SetModuleLogLevel(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogLevelResponse, error) {
out := new(LogLevelResponse)
err := c.cc.Invoke(ctx, "/protos.Admin/SetModuleLogLevel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminClient) RevertLogLevels(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/protos.Admin/RevertLogLevels", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminClient) GetLogSpec(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogSpecResponse, error) {
out := new(LogSpecResponse)
err := c.cc.Invoke(ctx, "/protos.Admin/GetLogSpec", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminClient) SetLogSpec(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogSpecResponse, error) {
out := new(LogSpecResponse)
err := c.cc.Invoke(ctx, "/protos.Admin/SetLogSpec", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AdminServer is the server API for Admin service.
type AdminServer interface {
GetStatus(context.Context, *common.Envelope) (*ServerStatus, error)
StartServer(context.Context, *common.Envelope) (*ServerStatus, error)
GetModuleLogLevel(context.Context, *common.Envelope) (*LogLevelResponse, error)
SetModuleLogLevel(context.Context, *common.Envelope) (*LogLevelResponse, error)
RevertLogLevels(context.Context, *common.Envelope) (*empty.Empty, error)
GetLogSpec(context.Context, *common.Envelope) (*LogSpecResponse, error)
SetLogSpec(context.Context, *common.Envelope) (*LogSpecResponse, error)
}
func RegisterAdminServer(s *grpc.Server, srv AdminServer) {
s.RegisterService(&_Admin_serviceDesc, srv)
}
func _Admin_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(common.Envelope)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServer).GetStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protos.Admin/GetStatus",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServer).GetStatus(ctx, req.(*common.Envelope))
}
return interceptor(ctx, in, info, handler)
}
func _Admin_StartServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(common.Envelope)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServer).StartServer(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protos.Admin/StartServer",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServer).StartServer(ctx, req.(*common.Envelope))
}
return interceptor(ctx, in, info, handler)
}
func _Admin_GetModuleLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(common.Envelope)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServer).GetModuleLogLevel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protos.Admin/GetModuleLogLevel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServer).GetModuleLogLevel(ctx, req.(*common.Envelope))
}
return interceptor(ctx, in, info, handler)
}
func _Admin_SetModuleLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(common.Envelope)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServer).SetModuleLogLevel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protos.Admin/SetModuleLogLevel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServer).SetModuleLogLevel(ctx, req.(*common.Envelope))
}
return interceptor(ctx, in, info, handler)
}
func _Admin_RevertLogLevels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(common.Envelope)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServer).RevertLogLevels(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protos.Admin/RevertLogLevels",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServer).RevertLogLevels(ctx, req.(*common.Envelope))
}
return interceptor(ctx, in, info, handler)
}
func _Admin_GetLogSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(common.Envelope)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServer).GetLogSpec(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protos.Admin/GetLogSpec",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServer).GetLogSpec(ctx, req.(*common.Envelope))
}
return interceptor(ctx, in, info, handler)
}
func _Admin_SetLogSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(common.Envelope)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServer).SetLogSpec(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/protos.Admin/SetLogSpec",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServer).SetLogSpec(ctx, req.(*common.Envelope))
}
return interceptor(ctx, in, info, handler)
}
var _Admin_serviceDesc = grpc.ServiceDesc{
ServiceName: "protos.Admin",
HandlerType: (*AdminServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetStatus",
Handler: _Admin_GetStatus_Handler,
},
{
MethodName: "StartServer",
Handler: _Admin_StartServer_Handler,
},
{
MethodName: "GetModuleLogLevel",
Handler: _Admin_GetModuleLogLevel_Handler,
},
{
MethodName: "SetModuleLogLevel",
Handler: _Admin_SetModuleLogLevel_Handler,
},
{
MethodName: "RevertLogLevels",
Handler: _Admin_RevertLogLevels_Handler,
},
{
MethodName: "GetLogSpec",
Handler: _Admin_GetLogSpec_Handler,
},
{
MethodName: "SetLogSpec",
Handler: _Admin_SetLogSpec_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "peer/admin.proto",
}
func init() { proto.RegisterFile("peer/admin.proto", fileDescriptor_admin_b2904393863b6bc5) }
var fileDescriptor_admin_b2904393863b6bc5 = []byte{
// 555 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xdd, 0x6e, 0xd3, 0x30,
0x14, 0x6e, 0x37, 0xda, 0x92, 0xd3, 0xd1, 0x05, 0x33, 0x6d, 0xa5, 0x13, 0x02, 0xe5, 0x0a, 0x84,
0x94, 0x88, 0x22, 0x34, 0x76, 0xc1, 0x45, 0x4b, 0x43, 0x87, 0xe8, 0xd2, 0x2a, 0x59, 0x85, 0x40,
0x42, 0x55, 0x9a, 0x9e, 0x79, 0x15, 0x6e, 0x9c, 0x39, 0x6e, 0xa5, 0xbd, 0x01, 0xcf, 0xc1, 0x23,
0xf0, 0x84, 0x28, 0x76, 0xc2, 0x2a, 0x56, 0x2e, 0xd8, 0xae, 0xec, 0x73, 0xfc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