-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.pb.go
705 lines (619 loc) · 24.4 KB
/
user.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: user.proto
/*
Package pb is a generated protocol buffer package.
It is generated from these files:
user.proto
vpn.proto
network.proto
It has these top-level messages:
UserListRequest
UserCreateRequest
UserUpdateRequest
UserDeleteRequest
UserRenewRequest
UserGenConfigRequest
UserResponse
UserGenConfigResponse
VPNStatusRequest
VPNInitRequest
VPNStatusResponse
VPNInitResponse
NetworkCreateRequest
NetworkListRequest
NetworkDeleteRequest
NetworkGetAllTypesRequest
NetworkAssociateRequest
NetworkDissociateRequest
NetworkGetAssociatedUsersRequest
Network
NetworkType
NetworkCreateResponse
NetworkListResponse
NetworkDeleteResponse
NetworkGetAllTypesResponse
NetworkAssociateResponse
NetworkDissociateResponse
NetworkGetAssociatedUsersResponse
*/
package pb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
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 UserUpdateRequest_GWPref int32
const (
UserUpdateRequest_NOPREF UserUpdateRequest_GWPref = 0
UserUpdateRequest_NOGW UserUpdateRequest_GWPref = 1
UserUpdateRequest_GW UserUpdateRequest_GWPref = 2
)
var UserUpdateRequest_GWPref_name = map[int32]string{
0: "NOPREF",
1: "NOGW",
2: "GW",
}
var UserUpdateRequest_GWPref_value = map[string]int32{
"NOPREF": 0,
"NOGW": 1,
"GW": 2,
}
func (x UserUpdateRequest_GWPref) String() string {
return proto.EnumName(UserUpdateRequest_GWPref_name, int32(x))
}
func (UserUpdateRequest_GWPref) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
type UserUpdateRequest_StaticPref int32
const (
UserUpdateRequest_NOPREFSTATIC UserUpdateRequest_StaticPref = 0
UserUpdateRequest_NOSTATIC UserUpdateRequest_StaticPref = 1
UserUpdateRequest_STATIC UserUpdateRequest_StaticPref = 2
)
var UserUpdateRequest_StaticPref_name = map[int32]string{
0: "NOPREFSTATIC",
1: "NOSTATIC",
2: "STATIC",
}
var UserUpdateRequest_StaticPref_value = map[string]int32{
"NOPREFSTATIC": 0,
"NOSTATIC": 1,
"STATIC": 2,
}
func (x UserUpdateRequest_StaticPref) String() string {
return proto.EnumName(UserUpdateRequest_StaticPref_name, int32(x))
}
func (UserUpdateRequest_StaticPref) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{2, 1}
}
type UserUpdateRequest_AdminPref int32
const (
UserUpdateRequest_NOPREFADMIN UserUpdateRequest_AdminPref = 0
UserUpdateRequest_NOADMIN UserUpdateRequest_AdminPref = 1
UserUpdateRequest_ADMIN UserUpdateRequest_AdminPref = 2
)
var UserUpdateRequest_AdminPref_name = map[int32]string{
0: "NOPREFADMIN",
1: "NOADMIN",
2: "ADMIN",
}
var UserUpdateRequest_AdminPref_value = map[string]int32{
"NOPREFADMIN": 0,
"NOADMIN": 1,
"ADMIN": 2,
}
func (x UserUpdateRequest_AdminPref) String() string {
return proto.EnumName(UserUpdateRequest_AdminPref_name, int32(x))
}
func (UserUpdateRequest_AdminPref) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{2, 2}
}
type UserListRequest struct {
}
func (m *UserListRequest) Reset() { *m = UserListRequest{} }
func (m *UserListRequest) String() string { return proto.CompactTextString(m) }
func (*UserListRequest) ProtoMessage() {}
func (*UserListRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type UserCreateRequest struct {
Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
Password string `protobuf:"bytes,2,opt,name=Password" json:"Password,omitempty"`
NoGW bool `protobuf:"varint,3,opt,name=NoGW" json:"NoGW,omitempty"`
HostID uint32 `protobuf:"varint,4,opt,name=HostID" json:"HostID,omitempty"`
IsAdmin bool `protobuf:"varint,5,opt,name=IsAdmin" json:"IsAdmin,omitempty"`
}
func (m *UserCreateRequest) Reset() { *m = UserCreateRequest{} }
func (m *UserCreateRequest) String() string { return proto.CompactTextString(m) }
func (*UserCreateRequest) ProtoMessage() {}
func (*UserCreateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *UserCreateRequest) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
func (m *UserCreateRequest) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *UserCreateRequest) GetNoGW() bool {
if m != nil {
return m.NoGW
}
return false
}
func (m *UserCreateRequest) GetHostID() uint32 {
if m != nil {
return m.HostID
}
return 0
}
func (m *UserCreateRequest) GetIsAdmin() bool {
if m != nil {
return m.IsAdmin
}
return false
}
type UserUpdateRequest struct {
Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
Password string `protobuf:"bytes,2,opt,name=Password" json:"Password,omitempty"`
Gwpref UserUpdateRequest_GWPref `protobuf:"varint,3,opt,name=gwpref,enum=pb.UserUpdateRequest_GWPref" json:"gwpref,omitempty"`
HostID uint32 `protobuf:"varint,4,opt,name=HostID" json:"HostID,omitempty"`
Staticpref UserUpdateRequest_StaticPref `protobuf:"varint,5,opt,name=staticpref,enum=pb.UserUpdateRequest_StaticPref" json:"staticpref,omitempty"`
Adminpref UserUpdateRequest_AdminPref `protobuf:"varint,6,opt,name=adminpref,enum=pb.UserUpdateRequest_AdminPref" json:"adminpref,omitempty"`
}
func (m *UserUpdateRequest) Reset() { *m = UserUpdateRequest{} }
func (m *UserUpdateRequest) String() string { return proto.CompactTextString(m) }
func (*UserUpdateRequest) ProtoMessage() {}
func (*UserUpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *UserUpdateRequest) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
func (m *UserUpdateRequest) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *UserUpdateRequest) GetGwpref() UserUpdateRequest_GWPref {
if m != nil {
return m.Gwpref
}
return UserUpdateRequest_NOPREF
}
func (m *UserUpdateRequest) GetHostID() uint32 {
if m != nil {
return m.HostID
}
return 0
}
func (m *UserUpdateRequest) GetStaticpref() UserUpdateRequest_StaticPref {
if m != nil {
return m.Staticpref
}
return UserUpdateRequest_NOPREFSTATIC
}
func (m *UserUpdateRequest) GetAdminpref() UserUpdateRequest_AdminPref {
if m != nil {
return m.Adminpref
}
return UserUpdateRequest_NOPREFADMIN
}
type UserDeleteRequest struct {
Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
}
func (m *UserDeleteRequest) Reset() { *m = UserDeleteRequest{} }
func (m *UserDeleteRequest) String() string { return proto.CompactTextString(m) }
func (*UserDeleteRequest) ProtoMessage() {}
func (*UserDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *UserDeleteRequest) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
type UserRenewRequest struct {
Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
}
func (m *UserRenewRequest) Reset() { *m = UserRenewRequest{} }
func (m *UserRenewRequest) String() string { return proto.CompactTextString(m) }
func (*UserRenewRequest) ProtoMessage() {}
func (*UserRenewRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *UserRenewRequest) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
type UserGenConfigRequest struct {
Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
}
func (m *UserGenConfigRequest) Reset() { *m = UserGenConfigRequest{} }
func (m *UserGenConfigRequest) String() string { return proto.CompactTextString(m) }
func (*UserGenConfigRequest) ProtoMessage() {}
func (*UserGenConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *UserGenConfigRequest) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
type UserResponse struct {
Users []*UserResponse_User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}
func (m *UserResponse) Reset() { *m = UserResponse{} }
func (m *UserResponse) String() string { return proto.CompactTextString(m) }
func (*UserResponse) ProtoMessage() {}
func (*UserResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *UserResponse) GetUsers() []*UserResponse_User {
if m != nil {
return m.Users
}
return nil
}
type UserResponse_User struct {
Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
ServerSerialNumber string `protobuf:"bytes,2,opt,name=ServerSerialNumber" json:"ServerSerialNumber,omitempty"`
Cert string `protobuf:"bytes,3,opt,name=Cert" json:"Cert,omitempty"`
CreatedAt string `protobuf:"bytes,4,opt,name=CreatedAt" json:"CreatedAt,omitempty"`
IPNet string `protobuf:"bytes,5,opt,name=IPNet" json:"IPNet,omitempty"`
NoGW bool `protobuf:"varint,6,opt,name=NoGW" json:"NoGW,omitempty"`
HostID uint32 `protobuf:"varint,7,opt,name=HostID" json:"HostID,omitempty"`
IsAdmin bool `protobuf:"varint,8,opt,name=IsAdmin" json:"IsAdmin,omitempty"`
}
func (m *UserResponse_User) Reset() { *m = UserResponse_User{} }
func (m *UserResponse_User) String() string { return proto.CompactTextString(m) }
func (*UserResponse_User) ProtoMessage() {}
func (*UserResponse_User) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6, 0} }
func (m *UserResponse_User) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
func (m *UserResponse_User) GetServerSerialNumber() string {
if m != nil {
return m.ServerSerialNumber
}
return ""
}
func (m *UserResponse_User) GetCert() string {
if m != nil {
return m.Cert
}
return ""
}
func (m *UserResponse_User) GetCreatedAt() string {
if m != nil {
return m.CreatedAt
}
return ""
}
func (m *UserResponse_User) GetIPNet() string {
if m != nil {
return m.IPNet
}
return ""
}
func (m *UserResponse_User) GetNoGW() bool {
if m != nil {
return m.NoGW
}
return false
}
func (m *UserResponse_User) GetHostID() uint32 {
if m != nil {
return m.HostID
}
return 0
}
func (m *UserResponse_User) GetIsAdmin() bool {
if m != nil {
return m.IsAdmin
}
return false
}
type UserGenConfigResponse struct {
ClientConfig string `protobuf:"bytes,1,opt,name=ClientConfig" json:"ClientConfig,omitempty"`
}
func (m *UserGenConfigResponse) Reset() { *m = UserGenConfigResponse{} }
func (m *UserGenConfigResponse) String() string { return proto.CompactTextString(m) }
func (*UserGenConfigResponse) ProtoMessage() {}
func (*UserGenConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *UserGenConfigResponse) GetClientConfig() string {
if m != nil {
return m.ClientConfig
}
return ""
}
func init() {
proto.RegisterType((*UserListRequest)(nil), "pb.UserListRequest")
proto.RegisterType((*UserCreateRequest)(nil), "pb.UserCreateRequest")
proto.RegisterType((*UserUpdateRequest)(nil), "pb.UserUpdateRequest")
proto.RegisterType((*UserDeleteRequest)(nil), "pb.UserDeleteRequest")
proto.RegisterType((*UserRenewRequest)(nil), "pb.UserRenewRequest")
proto.RegisterType((*UserGenConfigRequest)(nil), "pb.UserGenConfigRequest")
proto.RegisterType((*UserResponse)(nil), "pb.UserResponse")
proto.RegisterType((*UserResponse_User)(nil), "pb.UserResponse.User")
proto.RegisterType((*UserGenConfigResponse)(nil), "pb.UserGenConfigResponse")
proto.RegisterEnum("pb.UserUpdateRequest_GWPref", UserUpdateRequest_GWPref_name, UserUpdateRequest_GWPref_value)
proto.RegisterEnum("pb.UserUpdateRequest_StaticPref", UserUpdateRequest_StaticPref_name, UserUpdateRequest_StaticPref_value)
proto.RegisterEnum("pb.UserUpdateRequest_AdminPref", UserUpdateRequest_AdminPref_name, UserUpdateRequest_AdminPref_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
// Client API for UserService service
type UserServiceClient interface {
List(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserResponse, error)
Create(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserResponse, error)
Update(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserResponse, error)
Delete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserResponse, error)
Renew(ctx context.Context, in *UserRenewRequest, opts ...grpc.CallOption) (*UserResponse, error)
GenConfig(ctx context.Context, in *UserGenConfigRequest, opts ...grpc.CallOption) (*UserGenConfigResponse, error)
}
type userServiceClient struct {
cc *grpc.ClientConn
}
func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient {
return &userServiceClient{cc}
}
func (c *userServiceClient) List(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserResponse, error) {
out := new(UserResponse)
err := grpc.Invoke(ctx, "/pb.UserService/List", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userServiceClient) Create(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserResponse, error) {
out := new(UserResponse)
err := grpc.Invoke(ctx, "/pb.UserService/Create", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userServiceClient) Update(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserResponse, error) {
out := new(UserResponse)
err := grpc.Invoke(ctx, "/pb.UserService/Update", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userServiceClient) Delete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserResponse, error) {
out := new(UserResponse)
err := grpc.Invoke(ctx, "/pb.UserService/Delete", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userServiceClient) Renew(ctx context.Context, in *UserRenewRequest, opts ...grpc.CallOption) (*UserResponse, error) {
out := new(UserResponse)
err := grpc.Invoke(ctx, "/pb.UserService/Renew", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userServiceClient) GenConfig(ctx context.Context, in *UserGenConfigRequest, opts ...grpc.CallOption) (*UserGenConfigResponse, error) {
out := new(UserGenConfigResponse)
err := grpc.Invoke(ctx, "/pb.UserService/GenConfig", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for UserService service
type UserServiceServer interface {
List(context.Context, *UserListRequest) (*UserResponse, error)
Create(context.Context, *UserCreateRequest) (*UserResponse, error)
Update(context.Context, *UserUpdateRequest) (*UserResponse, error)
Delete(context.Context, *UserDeleteRequest) (*UserResponse, error)
Renew(context.Context, *UserRenewRequest) (*UserResponse, error)
GenConfig(context.Context, *UserGenConfigRequest) (*UserGenConfigResponse, error)
}
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer) {
s.RegisterService(&_UserService_serviceDesc, srv)
}
func _UserService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UserListRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserServiceServer).List(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserService/List",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserServiceServer).List(ctx, req.(*UserListRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UserCreateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserServiceServer).Create(ctx, req.(*UserCreateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UserUpdateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserServiceServer).Update(ctx, req.(*UserUpdateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UserDeleteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserServiceServer).Delete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserService/Delete",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserServiceServer).Delete(ctx, req.(*UserDeleteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserService_Renew_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UserRenewRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserServiceServer).Renew(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserService/Renew",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserServiceServer).Renew(ctx, req.(*UserRenewRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserService_GenConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UserGenConfigRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserServiceServer).GenConfig(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserService/GenConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserServiceServer).GenConfig(ctx, req.(*UserGenConfigRequest))
}
return interceptor(ctx, in, info, handler)
}
var _UserService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.UserService",
HandlerType: (*UserServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "List",
Handler: _UserService_List_Handler,
},
{
MethodName: "Create",
Handler: _UserService_Create_Handler,
},
{
MethodName: "Update",
Handler: _UserService_Update_Handler,
},
{
MethodName: "Delete",
Handler: _UserService_Delete_Handler,
},
{
MethodName: "Renew",
Handler: _UserService_Renew_Handler,
},
{
MethodName: "GenConfig",
Handler: _UserService_GenConfig_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "user.proto",
}
func init() { proto.RegisterFile("user.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 696 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xc1, 0x6e, 0xd3, 0x40,
0x10, 0x86, 0x6b, 0x27, 0x71, 0xe3, 0x49, 0xda, 0xba, 0xd3, 0x14, 0xdc, 0xa8, 0x88, 0x68, 0x0f,
0x28, 0x2a, 0x52, 0x22, 0x42, 0x0f, 0xa8, 0x08, 0x89, 0x28, 0x85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