/
service.pb.go
1994 lines (1882 loc) · 76.1 KB
/
service.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
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: service.proto
package bess_pb
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
// 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
// Client API for BESSControl service
type BESSControlClient interface {
// / Query version of bessd
GetVersion(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*VersionResponse, error)
// / Reset the current packet processing datapath to the initial state.
// /
// / This command is identical to the following sequence:
// / ResetModules()
// / ResetPorts()
// / ResetTcs()
// / ResetWorkers()
// / As it clears everything, BESS should appear as if the daemon has freshly
// / started (if not, it is a bug; please report).
// /
// / NOTE: There should be no running worker to run this command.
ResetAll(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Terminate the BESS daemon.
// /
// / BESS daemon shuts off in a graceful manner. Note that this command is
// / "asynchronous": this command doesn't block until the BESS daemon has
// / shut off.
// /
// / NOTE: There should be no running worker to run this command.
// / FIXME: rename (e.g., Terminate)
KillBess(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Import a plugin
// /
// / At the moment plugins can only contain module types,
// / but might also support drivers/hooks/schedulers in the future.
ImportPlugin(ctx context.Context, in *ImportPluginRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Unload a plugin
// /
// / At the moment plugins can only contain module types,
// / but might also support drivers/hooks/schedulers in the future.
UnloadPlugin(ctx context.Context, in *UnloadPluginRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / List imported plugins
// /
// / At the moment plugins can only contain module types,
// / but might also support drivers/hooks/schedulers in the future.
ListPlugins(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListPluginsResponse, error)
// / Pause all running workers temporarily
// /
// / Some RPC commands to BESS or individual modules/ports require that
// / threads must be inactive, to avoid race conditions.
// / For such commands, use PauseALl at the beginning and ResumeAll at the end.
// / PauseAll()
// / SomeCommand1()
// / SomeCommand2()
// / ...
// / ResumeAll()
// / Keep the duration as short as possible, to avoid packet drops.
PauseAll(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Pause the specified worker temporarily
// /
// / Some RPC commands to BESS or individual modules/ports require that
// / threads must be inactive, to avoid race conditions.
// / For such commands, use PauseWorker at the beginning and ResumeWorker at the end.
// / PauseWorker(0)
// / SomeCommand1()
// / SomeCommand2()
// / ...
// / ResumeWorker(0)
// / Keep the duration as short as possible, to avoid packet drops.
PauseWorker(ctx context.Context, in *PauseWorkerRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Resume the specified worker
ResumeWorker(ctx context.Context, in *ResumeWorkerRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Resume all paused workers
ResumeAll(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Remove all existing workers
// /
// / NOTE: There should be no running worker to run this command.
ResetWorkers(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Enumerate all existing workers
ListWorkers(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListWorkersResponse, error)
// / Create a new worker
// /
// / NOTE: There should be no running worker to run this command.
AddWorker(ctx context.Context, in *AddWorkerRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Remove a single worker
// /
// / NOTE: There should be no running worker to run this command.
DestroyWorker(ctx context.Context, in *DestroyWorkerRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Remove all existing traffic classes
// /
// / NOTE: There should be no running worker to run this command.
ResetTcs(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Enumerate all existing workers
ListTcs(ctx context.Context, in *ListTcsRequest, opts ...grpc.CallOption) (*ListTcsResponse, error)
// / Check scheduling contraints
CheckSchedulingConstraints(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*CheckSchedulingConstraintsResponse, error)
// / Create a new traffic class
// /
// / NOTE: There should be no running worker to run this command.
AddTc(ctx context.Context, in *AddTcRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Update parameters of an existing traffic class
// /
// / NOTE: There should be no running worker to run this command.
UpdateTcParams(ctx context.Context, in *UpdateTcParamsRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Change parent (and child arguments) of an existing traffic class
// /
// / NOTE: There should be no running worker to run this command.
UpdateTcParent(ctx context.Context, in *UpdateTcParentRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Collect statistics of a traffic class
GetTcStats(ctx context.Context, in *GetTcStatsRequest, opts ...grpc.CallOption) (*GetTcStatsResponse, error)
// / Enumerate all port drivers available
ListDrivers(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListDriversResponse, error)
// / Query detailed information of a port driver
GetDriverInfo(ctx context.Context, in *GetDriverInfoRequest, opts ...grpc.CallOption) (*GetDriverInfoResponse, error)
// / Remove all initialized ports
// /
// / Will fail if there are modules that are still using ports.
// / (e.g., PortInc, PortOut, QueueInc, QueueOut)
// /
// / NOTE: There should be no running worker to run this command.
ResetPorts(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Enumerate all initialized ports
ListPorts(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListPortsResponse, error)
// / Create a new port from the specified driver
CreatePort(ctx context.Context, in *CreatePortRequest, opts ...grpc.CallOption) (*CreatePortResponse, error)
// / Remove a port
// /
// / The port should not be being used by a port-related module.
// / (e.g., PortInc, PortOut, QueueInc, QueueOut)
DestroyPort(ctx context.Context, in *DestroyPortRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Runtime-updatable configuration
SetPortConf(ctx context.Context, in *SetPortConfRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
GetPortConf(ctx context.Context, in *GetPortConfRequest, opts ...grpc.CallOption) (*GetPortConfResponse, error)
// / Collect port statistics
// /
// / At the moment, per-queue stats are not supported.
GetPortStats(ctx context.Context, in *GetPortStatsRequest, opts ...grpc.CallOption) (*GetPortStatsResponse, error)
// / Query link status
GetLinkStatus(ctx context.Context, in *GetLinkStatusRequest, opts ...grpc.CallOption) (*GetLinkStatusResponse, error)
// / Enumerate all module types available
ListMclass(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListMclassResponse, error)
// / Query detailed information of a module type
GetMclassInfo(ctx context.Context, in *GetMclassInfoRequest, opts ...grpc.CallOption) (*GetMclassInfoResponse, error)
// / Remove all modules.
// /
// / This RPC will always succeed (unless there is a running worker)
// /
// / NOTE: There should be no running worker to run this command.
ResetModules(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Enumerate all initialized modules
ListModules(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListModulesResponse, error)
// / Create a new module instance from the given module type
// /
// / NOTE: There should be no running worker to run this command.
CreateModule(ctx context.Context, in *CreateModuleRequest, opts ...grpc.CallOption) (*CreateModuleResponse, error)
// / Destroy an exsting module
// /
// / If the module is connected to other modules' input/output gate, they are
// / disconnected first. All tasks created by the module will also be destoyed.
// /
// / NOTE: There should be no running worker to run this command.
DestroyModule(ctx context.Context, in *DestroyModuleRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Fetch detailed information of an module instance
GetModuleInfo(ctx context.Context, in *GetModuleInfoRequest, opts ...grpc.CallOption) (*GetModuleInfoResponse, error)
// / Connect two modules.
// /
// / Connect between m1's ogate and n2's igate (i.e., ackets sent to m1's ogate
// / will be fed to m2's igate). The oate can be connected to only one igate,
// / while the igate can be connected to multiple output gates.
// /
// / NOTE: There should be no running worker to run this command.
ConnectModules(ctx context.Context, in *ConnectModulesRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Disconnect two modules.
// /
// / It removes a connection between two modules (you specify the previous one
// / and its output gate). All packets coming out from the ogate will be
// / dropped. Once disconnected, the ogate can be connected
// / to any input gate.
// /
// / NOTE: There should be no running worker to run this command.
DisconnectModules(ctx context.Context, in *DisconnectModulesRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
// / Dump various stats about BESS's packet pools
DumpMempool(ctx context.Context, in *DumpMempoolRequest, opts ...grpc.CallOption) (*DumpMempoolResponse, error)
// / Send a command to the specified module instance.
// /
// / Each module type defines a list of modyle-specific commands, which
// / allow external programs to communicate with the module at runtime.
// / See module_msg.proto for details.
// /
// / NOTE: Some commands cannot be used if there are running workers.
// / For those commands you must pause all workers first.
ModuleCommand(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error)
// / Enumerate all gatehook types available
ListGateHookClass(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListGateHookClassResponse, error)
// / Query detailed information of a gatehook type
GetGateHookClassInfo(ctx context.Context, in *GetGateHookClassInfoRequest, opts ...grpc.CallOption) (*GetGateHookClassInfoResponse, error)
// / Enable/Disable a gate hook.
ConfigureGateHook(ctx context.Context, in *ConfigureGateHookRequest, opts ...grpc.CallOption) (*ConfigureGateHookResponse, error)
// / Enumerate all gatehook installed
ListGateHooks(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListGateHooksResponse, error)
// / Send command to gate hook instance.
GateHookCommand(ctx context.Context, in *GateHookCommandRequest, opts ...grpc.CallOption) (*CommandResponse, error)
// / Enable/Disable a resume hook.
ConfigureResumeHook(ctx context.Context, in *ConfigureResumeHookRequest, opts ...grpc.CallOption) (*CommandResponse, error)
}
type bESSControlClient struct {
cc *grpc.ClientConn
}
func NewBESSControlClient(cc *grpc.ClientConn) BESSControlClient {
return &bESSControlClient{cc}
}
func (c *bESSControlClient) GetVersion(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*VersionResponse, error) {
out := new(VersionResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GetVersion", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ResetAll(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ResetAll", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) KillBess(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/KillBess", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ImportPlugin(ctx context.Context, in *ImportPluginRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ImportPlugin", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) UnloadPlugin(ctx context.Context, in *UnloadPluginRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/UnloadPlugin", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ListPlugins(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListPluginsResponse, error) {
out := new(ListPluginsResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ListPlugins", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) PauseAll(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/PauseAll", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) PauseWorker(ctx context.Context, in *PauseWorkerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/PauseWorker", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ResumeWorker(ctx context.Context, in *ResumeWorkerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ResumeWorker", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ResumeAll(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ResumeAll", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ResetWorkers(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ResetWorkers", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ListWorkers(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListWorkersResponse, error) {
out := new(ListWorkersResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ListWorkers", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) AddWorker(ctx context.Context, in *AddWorkerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/AddWorker", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) DestroyWorker(ctx context.Context, in *DestroyWorkerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/DestroyWorker", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ResetTcs(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ResetTcs", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ListTcs(ctx context.Context, in *ListTcsRequest, opts ...grpc.CallOption) (*ListTcsResponse, error) {
out := new(ListTcsResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ListTcs", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) CheckSchedulingConstraints(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*CheckSchedulingConstraintsResponse, error) {
out := new(CheckSchedulingConstraintsResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/CheckSchedulingConstraints", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) AddTc(ctx context.Context, in *AddTcRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/AddTc", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) UpdateTcParams(ctx context.Context, in *UpdateTcParamsRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/UpdateTcParams", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) UpdateTcParent(ctx context.Context, in *UpdateTcParentRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/UpdateTcParent", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) GetTcStats(ctx context.Context, in *GetTcStatsRequest, opts ...grpc.CallOption) (*GetTcStatsResponse, error) {
out := new(GetTcStatsResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GetTcStats", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ListDrivers(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListDriversResponse, error) {
out := new(ListDriversResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ListDrivers", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) GetDriverInfo(ctx context.Context, in *GetDriverInfoRequest, opts ...grpc.CallOption) (*GetDriverInfoResponse, error) {
out := new(GetDriverInfoResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GetDriverInfo", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ResetPorts(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ResetPorts", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ListPorts(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListPortsResponse, error) {
out := new(ListPortsResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ListPorts", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) CreatePort(ctx context.Context, in *CreatePortRequest, opts ...grpc.CallOption) (*CreatePortResponse, error) {
out := new(CreatePortResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/CreatePort", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) DestroyPort(ctx context.Context, in *DestroyPortRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/DestroyPort", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) SetPortConf(ctx context.Context, in *SetPortConfRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/SetPortConf", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) GetPortConf(ctx context.Context, in *GetPortConfRequest, opts ...grpc.CallOption) (*GetPortConfResponse, error) {
out := new(GetPortConfResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GetPortConf", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) GetPortStats(ctx context.Context, in *GetPortStatsRequest, opts ...grpc.CallOption) (*GetPortStatsResponse, error) {
out := new(GetPortStatsResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GetPortStats", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) GetLinkStatus(ctx context.Context, in *GetLinkStatusRequest, opts ...grpc.CallOption) (*GetLinkStatusResponse, error) {
out := new(GetLinkStatusResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GetLinkStatus", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ListMclass(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListMclassResponse, error) {
out := new(ListMclassResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ListMclass", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) GetMclassInfo(ctx context.Context, in *GetMclassInfoRequest, opts ...grpc.CallOption) (*GetMclassInfoResponse, error) {
out := new(GetMclassInfoResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GetMclassInfo", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ResetModules(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ResetModules", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ListModules(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListModulesResponse, error) {
out := new(ListModulesResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ListModules", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) CreateModule(ctx context.Context, in *CreateModuleRequest, opts ...grpc.CallOption) (*CreateModuleResponse, error) {
out := new(CreateModuleResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/CreateModule", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) DestroyModule(ctx context.Context, in *DestroyModuleRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/DestroyModule", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) GetModuleInfo(ctx context.Context, in *GetModuleInfoRequest, opts ...grpc.CallOption) (*GetModuleInfoResponse, error) {
out := new(GetModuleInfoResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GetModuleInfo", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ConnectModules(ctx context.Context, in *ConnectModulesRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ConnectModules", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) DisconnectModules(ctx context.Context, in *DisconnectModulesRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
out := new(EmptyResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/DisconnectModules", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) DumpMempool(ctx context.Context, in *DumpMempoolRequest, opts ...grpc.CallOption) (*DumpMempoolResponse, error) {
out := new(DumpMempoolResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/DumpMempool", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ModuleCommand(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error) {
out := new(CommandResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ModuleCommand", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ListGateHookClass(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListGateHookClassResponse, error) {
out := new(ListGateHookClassResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ListGateHookClass", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) GetGateHookClassInfo(ctx context.Context, in *GetGateHookClassInfoRequest, opts ...grpc.CallOption) (*GetGateHookClassInfoResponse, error) {
out := new(GetGateHookClassInfoResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GetGateHookClassInfo", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ConfigureGateHook(ctx context.Context, in *ConfigureGateHookRequest, opts ...grpc.CallOption) (*ConfigureGateHookResponse, error) {
out := new(ConfigureGateHookResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ConfigureGateHook", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ListGateHooks(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListGateHooksResponse, error) {
out := new(ListGateHooksResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ListGateHooks", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) GateHookCommand(ctx context.Context, in *GateHookCommandRequest, opts ...grpc.CallOption) (*CommandResponse, error) {
out := new(CommandResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/GateHookCommand", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bESSControlClient) ConfigureResumeHook(ctx context.Context, in *ConfigureResumeHookRequest, opts ...grpc.CallOption) (*CommandResponse, error) {
out := new(CommandResponse)
err := grpc.Invoke(ctx, "/bess.pb.BESSControl/ConfigureResumeHook", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for BESSControl service
type BESSControlServer interface {
// / Query version of bessd
GetVersion(context.Context, *EmptyRequest) (*VersionResponse, error)
// / Reset the current packet processing datapath to the initial state.
// /
// / This command is identical to the following sequence:
// / ResetModules()
// / ResetPorts()
// / ResetTcs()
// / ResetWorkers()
// / As it clears everything, BESS should appear as if the daemon has freshly
// / started (if not, it is a bug; please report).
// /
// / NOTE: There should be no running worker to run this command.
ResetAll(context.Context, *EmptyRequest) (*EmptyResponse, error)
// / Terminate the BESS daemon.
// /
// / BESS daemon shuts off in a graceful manner. Note that this command is
// / "asynchronous": this command doesn't block until the BESS daemon has
// / shut off.
// /
// / NOTE: There should be no running worker to run this command.
// / FIXME: rename (e.g., Terminate)
KillBess(context.Context, *EmptyRequest) (*EmptyResponse, error)
// / Import a plugin
// /
// / At the moment plugins can only contain module types,
// / but might also support drivers/hooks/schedulers in the future.
ImportPlugin(context.Context, *ImportPluginRequest) (*EmptyResponse, error)
// / Unload a plugin
// /
// / At the moment plugins can only contain module types,
// / but might also support drivers/hooks/schedulers in the future.
UnloadPlugin(context.Context, *UnloadPluginRequest) (*EmptyResponse, error)
// / List imported plugins
// /
// / At the moment plugins can only contain module types,
// / but might also support drivers/hooks/schedulers in the future.
ListPlugins(context.Context, *EmptyRequest) (*ListPluginsResponse, error)
// / Pause all running workers temporarily
// /
// / Some RPC commands to BESS or individual modules/ports require that
// / threads must be inactive, to avoid race conditions.
// / For such commands, use PauseALl at the beginning and ResumeAll at the end.
// / PauseAll()
// / SomeCommand1()
// / SomeCommand2()
// / ...
// / ResumeAll()
// / Keep the duration as short as possible, to avoid packet drops.
PauseAll(context.Context, *EmptyRequest) (*EmptyResponse, error)
// / Pause the specified worker temporarily
// /
// / Some RPC commands to BESS or individual modules/ports require that
// / threads must be inactive, to avoid race conditions.
// / For such commands, use PauseWorker at the beginning and ResumeWorker at the end.
// / PauseWorker(0)
// / SomeCommand1()
// / SomeCommand2()
// / ...
// / ResumeWorker(0)
// / Keep the duration as short as possible, to avoid packet drops.
PauseWorker(context.Context, *PauseWorkerRequest) (*EmptyResponse, error)
// / Resume the specified worker
ResumeWorker(context.Context, *ResumeWorkerRequest) (*EmptyResponse, error)
// / Resume all paused workers
ResumeAll(context.Context, *EmptyRequest) (*EmptyResponse, error)
// / Remove all existing workers
// /
// / NOTE: There should be no running worker to run this command.
ResetWorkers(context.Context, *EmptyRequest) (*EmptyResponse, error)
// / Enumerate all existing workers
ListWorkers(context.Context, *EmptyRequest) (*ListWorkersResponse, error)
// / Create a new worker
// /
// / NOTE: There should be no running worker to run this command.
AddWorker(context.Context, *AddWorkerRequest) (*EmptyResponse, error)
// / Remove a single worker
// /
// / NOTE: There should be no running worker to run this command.
DestroyWorker(context.Context, *DestroyWorkerRequest) (*EmptyResponse, error)
// / Remove all existing traffic classes
// /
// / NOTE: There should be no running worker to run this command.
ResetTcs(context.Context, *EmptyRequest) (*EmptyResponse, error)
// / Enumerate all existing workers
ListTcs(context.Context, *ListTcsRequest) (*ListTcsResponse, error)
// / Check scheduling contraints
CheckSchedulingConstraints(context.Context, *EmptyRequest) (*CheckSchedulingConstraintsResponse, error)
// / Create a new traffic class
// /
// / NOTE: There should be no running worker to run this command.
AddTc(context.Context, *AddTcRequest) (*EmptyResponse, error)
// / Update parameters of an existing traffic class
// /
// / NOTE: There should be no running worker to run this command.
UpdateTcParams(context.Context, *UpdateTcParamsRequest) (*EmptyResponse, error)
// / Change parent (and child arguments) of an existing traffic class
// /
// / NOTE: There should be no running worker to run this command.
UpdateTcParent(context.Context, *UpdateTcParentRequest) (*EmptyResponse, error)
// / Collect statistics of a traffic class
GetTcStats(context.Context, *GetTcStatsRequest) (*GetTcStatsResponse, error)
// / Enumerate all port drivers available
ListDrivers(context.Context, *EmptyRequest) (*ListDriversResponse, error)
// / Query detailed information of a port driver
GetDriverInfo(context.Context, *GetDriverInfoRequest) (*GetDriverInfoResponse, error)
// / Remove all initialized ports
// /
// / Will fail if there are modules that are still using ports.
// / (e.g., PortInc, PortOut, QueueInc, QueueOut)
// /
// / NOTE: There should be no running worker to run this command.
ResetPorts(context.Context, *EmptyRequest) (*EmptyResponse, error)
// / Enumerate all initialized ports
ListPorts(context.Context, *EmptyRequest) (*ListPortsResponse, error)
// / Create a new port from the specified driver
CreatePort(context.Context, *CreatePortRequest) (*CreatePortResponse, error)
// / Remove a port
// /
// / The port should not be being used by a port-related module.
// / (e.g., PortInc, PortOut, QueueInc, QueueOut)
DestroyPort(context.Context, *DestroyPortRequest) (*EmptyResponse, error)
// / Runtime-updatable configuration
SetPortConf(context.Context, *SetPortConfRequest) (*EmptyResponse, error)
GetPortConf(context.Context, *GetPortConfRequest) (*GetPortConfResponse, error)
// / Collect port statistics
// /
// / At the moment, per-queue stats are not supported.
GetPortStats(context.Context, *GetPortStatsRequest) (*GetPortStatsResponse, error)
// / Query link status
GetLinkStatus(context.Context, *GetLinkStatusRequest) (*GetLinkStatusResponse, error)
// / Enumerate all module types available
ListMclass(context.Context, *EmptyRequest) (*ListMclassResponse, error)
// / Query detailed information of a module type
GetMclassInfo(context.Context, *GetMclassInfoRequest) (*GetMclassInfoResponse, error)
// / Remove all modules.
// /
// / This RPC will always succeed (unless there is a running worker)
// /
// / NOTE: There should be no running worker to run this command.
ResetModules(context.Context, *EmptyRequest) (*EmptyResponse, error)
// / Enumerate all initialized modules
ListModules(context.Context, *EmptyRequest) (*ListModulesResponse, error)
// / Create a new module instance from the given module type
// /
// / NOTE: There should be no running worker to run this command.
CreateModule(context.Context, *CreateModuleRequest) (*CreateModuleResponse, error)
// / Destroy an exsting module
// /
// / If the module is connected to other modules' input/output gate, they are
// / disconnected first. All tasks created by the module will also be destoyed.
// /
// / NOTE: There should be no running worker to run this command.
DestroyModule(context.Context, *DestroyModuleRequest) (*EmptyResponse, error)
// / Fetch detailed information of an module instance
GetModuleInfo(context.Context, *GetModuleInfoRequest) (*GetModuleInfoResponse, error)
// / Connect two modules.
// /
// / Connect between m1's ogate and n2's igate (i.e., ackets sent to m1's ogate
// / will be fed to m2's igate). The oate can be connected to only one igate,
// / while the igate can be connected to multiple output gates.
// /
// / NOTE: There should be no running worker to run this command.
ConnectModules(context.Context, *ConnectModulesRequest) (*EmptyResponse, error)
// / Disconnect two modules.
// /
// / It removes a connection between two modules (you specify the previous one
// / and its output gate). All packets coming out from the ogate will be
// / dropped. Once disconnected, the ogate can be connected
// / to any input gate.
// /
// / NOTE: There should be no running worker to run this command.
DisconnectModules(context.Context, *DisconnectModulesRequest) (*EmptyResponse, error)
// / Dump various stats about BESS's packet pools
DumpMempool(context.Context, *DumpMempoolRequest) (*DumpMempoolResponse, error)
// / Send a command to the specified module instance.
// /
// / Each module type defines a list of modyle-specific commands, which
// / allow external programs to communicate with the module at runtime.
// / See module_msg.proto for details.
// /
// / NOTE: Some commands cannot be used if there are running workers.
// / For those commands you must pause all workers first.
ModuleCommand(context.Context, *CommandRequest) (*CommandResponse, error)
// / Enumerate all gatehook types available
ListGateHookClass(context.Context, *EmptyRequest) (*ListGateHookClassResponse, error)
// / Query detailed information of a gatehook type
GetGateHookClassInfo(context.Context, *GetGateHookClassInfoRequest) (*GetGateHookClassInfoResponse, error)
// / Enable/Disable a gate hook.
ConfigureGateHook(context.Context, *ConfigureGateHookRequest) (*ConfigureGateHookResponse, error)
// / Enumerate all gatehook installed
ListGateHooks(context.Context, *EmptyRequest) (*ListGateHooksResponse, error)
// / Send command to gate hook instance.
GateHookCommand(context.Context, *GateHookCommandRequest) (*CommandResponse, error)
// / Enable/Disable a resume hook.
ConfigureResumeHook(context.Context, *ConfigureResumeHookRequest) (*CommandResponse, error)
}
func RegisterBESSControlServer(s *grpc.Server, srv BESSControlServer) {
s.RegisterService(&_BESSControl_serviceDesc, srv)
}
func _BESSControl_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BESSControlServer).GetVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bess.pb.BESSControl/GetVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BESSControlServer).GetVersion(ctx, req.(*EmptyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BESSControl_ResetAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BESSControlServer).ResetAll(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bess.pb.BESSControl/ResetAll",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BESSControlServer).ResetAll(ctx, req.(*EmptyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BESSControl_KillBess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BESSControlServer).KillBess(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bess.pb.BESSControl/KillBess",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BESSControlServer).KillBess(ctx, req.(*EmptyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BESSControl_ImportPlugin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportPluginRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BESSControlServer).ImportPlugin(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bess.pb.BESSControl/ImportPlugin",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BESSControlServer).ImportPlugin(ctx, req.(*ImportPluginRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BESSControl_UnloadPlugin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UnloadPluginRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BESSControlServer).UnloadPlugin(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bess.pb.BESSControl/UnloadPlugin",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BESSControlServer).UnloadPlugin(ctx, req.(*UnloadPluginRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BESSControl_ListPlugins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BESSControlServer).ListPlugins(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bess.pb.BESSControl/ListPlugins",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BESSControlServer).ListPlugins(ctx, req.(*EmptyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BESSControl_PauseAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BESSControlServer).PauseAll(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bess.pb.BESSControl/PauseAll",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BESSControlServer).PauseAll(ctx, req.(*EmptyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BESSControl_PauseWorker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {