-
Notifications
You must be signed in to change notification settings - Fork 0
/
spec_grpc.pb.go
2708 lines (2481 loc) · 101 KB
/
spec_grpc.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-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.12.4
// source: spec.proto
package goautowp
import (
context "context"
empty "github.com/golang/protobuf/ptypes/empty"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// AutowpClient is the client API for Autowp service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type AutowpClient interface {
AclEnforce(ctx context.Context, in *AclEnforceRequest, opts ...grpc.CallOption) (*AclEnforceResult, error)
CreateFeedback(ctx context.Context, in *APICreateFeedbackRequest, opts ...grpc.CallOption) (*empty.Empty, error)
GetBrandIcons(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*BrandIcons, error)
GetBrandVehicleTypes(ctx context.Context, in *GetBrandVehicleTypesRequest, opts ...grpc.CallOption) (*BrandVehicleTypeItems, error)
GetForumsUserSummary(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APIForumsUserSummary, error)
GetIP(ctx context.Context, in *APIGetIPRequest, opts ...grpc.CallOption) (*APIIP, error)
GetPerspectives(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PerspectivesItems, error)
GetPerspectivePages(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PerspectivePagesItems, error)
GetReCaptchaConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ReCaptchaConfig, error)
GetSpecs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SpecsItems, error)
GetVehicleTypes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VehicleTypeItems, error)
}
type autowpClient struct {
cc grpc.ClientConnInterface
}
func NewAutowpClient(cc grpc.ClientConnInterface) AutowpClient {
return &autowpClient{cc}
}
func (c *autowpClient) AclEnforce(ctx context.Context, in *AclEnforceRequest, opts ...grpc.CallOption) (*AclEnforceResult, error) {
out := new(AclEnforceResult)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/AclEnforce", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) CreateFeedback(ctx context.Context, in *APICreateFeedbackRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/CreateFeedback", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) GetBrandIcons(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*BrandIcons, error) {
out := new(BrandIcons)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/GetBrandIcons", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) GetBrandVehicleTypes(ctx context.Context, in *GetBrandVehicleTypesRequest, opts ...grpc.CallOption) (*BrandVehicleTypeItems, error) {
out := new(BrandVehicleTypeItems)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/GetBrandVehicleTypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) GetForumsUserSummary(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APIForumsUserSummary, error) {
out := new(APIForumsUserSummary)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/GetForumsUserSummary", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) GetIP(ctx context.Context, in *APIGetIPRequest, opts ...grpc.CallOption) (*APIIP, error) {
out := new(APIIP)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/GetIP", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) GetPerspectives(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PerspectivesItems, error) {
out := new(PerspectivesItems)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/GetPerspectives", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) GetPerspectivePages(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PerspectivePagesItems, error) {
out := new(PerspectivePagesItems)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/GetPerspectivePages", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) GetReCaptchaConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ReCaptchaConfig, error) {
out := new(ReCaptchaConfig)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/GetReCaptchaConfig", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) GetSpecs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SpecsItems, error) {
out := new(SpecsItems)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/GetSpecs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *autowpClient) GetVehicleTypes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VehicleTypeItems, error) {
out := new(VehicleTypeItems)
err := c.cc.Invoke(ctx, "/goautowp.Autowp/GetVehicleTypes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AutowpServer is the server API for Autowp service.
// All implementations must embed UnimplementedAutowpServer
// for forward compatibility
type AutowpServer interface {
AclEnforce(context.Context, *AclEnforceRequest) (*AclEnforceResult, error)
CreateFeedback(context.Context, *APICreateFeedbackRequest) (*empty.Empty, error)
GetBrandIcons(context.Context, *empty.Empty) (*BrandIcons, error)
GetBrandVehicleTypes(context.Context, *GetBrandVehicleTypesRequest) (*BrandVehicleTypeItems, error)
GetForumsUserSummary(context.Context, *empty.Empty) (*APIForumsUserSummary, error)
GetIP(context.Context, *APIGetIPRequest) (*APIIP, error)
GetPerspectives(context.Context, *empty.Empty) (*PerspectivesItems, error)
GetPerspectivePages(context.Context, *empty.Empty) (*PerspectivePagesItems, error)
GetReCaptchaConfig(context.Context, *empty.Empty) (*ReCaptchaConfig, error)
GetSpecs(context.Context, *empty.Empty) (*SpecsItems, error)
GetVehicleTypes(context.Context, *empty.Empty) (*VehicleTypeItems, error)
mustEmbedUnimplementedAutowpServer()
}
// UnimplementedAutowpServer must be embedded to have forward compatible implementations.
type UnimplementedAutowpServer struct {
}
func (UnimplementedAutowpServer) AclEnforce(context.Context, *AclEnforceRequest) (*AclEnforceResult, error) {
return nil, status.Errorf(codes.Unimplemented, "method AclEnforce not implemented")
}
func (UnimplementedAutowpServer) CreateFeedback(context.Context, *APICreateFeedbackRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateFeedback not implemented")
}
func (UnimplementedAutowpServer) GetBrandIcons(context.Context, *empty.Empty) (*BrandIcons, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBrandIcons not implemented")
}
func (UnimplementedAutowpServer) GetBrandVehicleTypes(context.Context, *GetBrandVehicleTypesRequest) (*BrandVehicleTypeItems, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBrandVehicleTypes not implemented")
}
func (UnimplementedAutowpServer) GetForumsUserSummary(context.Context, *empty.Empty) (*APIForumsUserSummary, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetForumsUserSummary not implemented")
}
func (UnimplementedAutowpServer) GetIP(context.Context, *APIGetIPRequest) (*APIIP, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetIP not implemented")
}
func (UnimplementedAutowpServer) GetPerspectives(context.Context, *empty.Empty) (*PerspectivesItems, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPerspectives not implemented")
}
func (UnimplementedAutowpServer) GetPerspectivePages(context.Context, *empty.Empty) (*PerspectivePagesItems, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPerspectivePages not implemented")
}
func (UnimplementedAutowpServer) GetReCaptchaConfig(context.Context, *empty.Empty) (*ReCaptchaConfig, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetReCaptchaConfig not implemented")
}
func (UnimplementedAutowpServer) GetSpecs(context.Context, *empty.Empty) (*SpecsItems, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetSpecs not implemented")
}
func (UnimplementedAutowpServer) GetVehicleTypes(context.Context, *empty.Empty) (*VehicleTypeItems, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetVehicleTypes not implemented")
}
func (UnimplementedAutowpServer) mustEmbedUnimplementedAutowpServer() {}
// UnsafeAutowpServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to AutowpServer will
// result in compilation errors.
type UnsafeAutowpServer interface {
mustEmbedUnimplementedAutowpServer()
}
func RegisterAutowpServer(s grpc.ServiceRegistrar, srv AutowpServer) {
s.RegisterService(&Autowp_ServiceDesc, srv)
}
func _Autowp_AclEnforce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AclEnforceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).AclEnforce(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/AclEnforce",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).AclEnforce(ctx, req.(*AclEnforceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_CreateFeedback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(APICreateFeedbackRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).CreateFeedback(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/CreateFeedback",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).CreateFeedback(ctx, req.(*APICreateFeedbackRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_GetBrandIcons_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).GetBrandIcons(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/GetBrandIcons",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).GetBrandIcons(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_GetBrandVehicleTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetBrandVehicleTypesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).GetBrandVehicleTypes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/GetBrandVehicleTypes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).GetBrandVehicleTypes(ctx, req.(*GetBrandVehicleTypesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_GetForumsUserSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).GetForumsUserSummary(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/GetForumsUserSummary",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).GetForumsUserSummary(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_GetIP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(APIGetIPRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).GetIP(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/GetIP",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).GetIP(ctx, req.(*APIGetIPRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_GetPerspectives_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).GetPerspectives(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/GetPerspectives",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).GetPerspectives(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_GetPerspectivePages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).GetPerspectivePages(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/GetPerspectivePages",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).GetPerspectivePages(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_GetReCaptchaConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).GetReCaptchaConfig(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/GetReCaptchaConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).GetReCaptchaConfig(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_GetSpecs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).GetSpecs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/GetSpecs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).GetSpecs(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Autowp_GetVehicleTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AutowpServer).GetVehicleTypes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Autowp/GetVehicleTypes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AutowpServer).GetVehicleTypes(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
// Autowp_ServiceDesc is the grpc.ServiceDesc for Autowp service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Autowp_ServiceDesc = grpc.ServiceDesc{
ServiceName: "goautowp.Autowp",
HandlerType: (*AutowpServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "AclEnforce",
Handler: _Autowp_AclEnforce_Handler,
},
{
MethodName: "CreateFeedback",
Handler: _Autowp_CreateFeedback_Handler,
},
{
MethodName: "GetBrandIcons",
Handler: _Autowp_GetBrandIcons_Handler,
},
{
MethodName: "GetBrandVehicleTypes",
Handler: _Autowp_GetBrandVehicleTypes_Handler,
},
{
MethodName: "GetForumsUserSummary",
Handler: _Autowp_GetForumsUserSummary_Handler,
},
{
MethodName: "GetIP",
Handler: _Autowp_GetIP_Handler,
},
{
MethodName: "GetPerspectives",
Handler: _Autowp_GetPerspectives_Handler,
},
{
MethodName: "GetPerspectivePages",
Handler: _Autowp_GetPerspectivePages_Handler,
},
{
MethodName: "GetReCaptchaConfig",
Handler: _Autowp_GetReCaptchaConfig_Handler,
},
{
MethodName: "GetSpecs",
Handler: _Autowp_GetSpecs_Handler,
},
{
MethodName: "GetVehicleTypes",
Handler: _Autowp_GetVehicleTypes_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "spec.proto",
}
// ArticlesClient is the client API for Articles service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ArticlesClient interface {
GetList(ctx context.Context, in *ArticlesRequest, opts ...grpc.CallOption) (*ArticlesResponse, error)
GetItemByCatname(ctx context.Context, in *ArticleByCatnameRequest, opts ...grpc.CallOption) (*Article, error)
}
type articlesClient struct {
cc grpc.ClientConnInterface
}
func NewArticlesClient(cc grpc.ClientConnInterface) ArticlesClient {
return &articlesClient{cc}
}
func (c *articlesClient) GetList(ctx context.Context, in *ArticlesRequest, opts ...grpc.CallOption) (*ArticlesResponse, error) {
out := new(ArticlesResponse)
err := c.cc.Invoke(ctx, "/goautowp.Articles/GetList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *articlesClient) GetItemByCatname(ctx context.Context, in *ArticleByCatnameRequest, opts ...grpc.CallOption) (*Article, error) {
out := new(Article)
err := c.cc.Invoke(ctx, "/goautowp.Articles/GetItemByCatname", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ArticlesServer is the server API for Articles service.
// All implementations must embed UnimplementedArticlesServer
// for forward compatibility
type ArticlesServer interface {
GetList(context.Context, *ArticlesRequest) (*ArticlesResponse, error)
GetItemByCatname(context.Context, *ArticleByCatnameRequest) (*Article, error)
mustEmbedUnimplementedArticlesServer()
}
// UnimplementedArticlesServer must be embedded to have forward compatible implementations.
type UnimplementedArticlesServer struct {
}
func (UnimplementedArticlesServer) GetList(context.Context, *ArticlesRequest) (*ArticlesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetList not implemented")
}
func (UnimplementedArticlesServer) GetItemByCatname(context.Context, *ArticleByCatnameRequest) (*Article, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetItemByCatname not implemented")
}
func (UnimplementedArticlesServer) mustEmbedUnimplementedArticlesServer() {}
// UnsafeArticlesServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ArticlesServer will
// result in compilation errors.
type UnsafeArticlesServer interface {
mustEmbedUnimplementedArticlesServer()
}
func RegisterArticlesServer(s grpc.ServiceRegistrar, srv ArticlesServer) {
s.RegisterService(&Articles_ServiceDesc, srv)
}
func _Articles_GetList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ArticlesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ArticlesServer).GetList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Articles/GetList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ArticlesServer).GetList(ctx, req.(*ArticlesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Articles_GetItemByCatname_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ArticleByCatnameRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ArticlesServer).GetItemByCatname(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Articles/GetItemByCatname",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ArticlesServer).GetItemByCatname(ctx, req.(*ArticleByCatnameRequest))
}
return interceptor(ctx, in, info, handler)
}
// Articles_ServiceDesc is the grpc.ServiceDesc for Articles service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Articles_ServiceDesc = grpc.ServiceDesc{
ServiceName: "goautowp.Articles",
HandlerType: (*ArticlesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetList",
Handler: _Articles_GetList_Handler,
},
{
MethodName: "GetItemByCatname",
Handler: _Articles_GetItemByCatname_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "spec.proto",
}
// TrafficClient is the client API for Traffic service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type TrafficClient interface {
AddToBlacklist(ctx context.Context, in *AddToTrafficBlacklistRequest, opts ...grpc.CallOption) (*empty.Empty, error)
AddToWhitelist(ctx context.Context, in *AddToTrafficWhitelistRequest, opts ...grpc.CallOption) (*empty.Empty, error)
DeleteFromBlacklist(ctx context.Context, in *DeleteFromTrafficBlacklistRequest, opts ...grpc.CallOption) (*empty.Empty, error)
DeleteFromWhitelist(ctx context.Context, in *DeleteFromTrafficWhitelistRequest, opts ...grpc.CallOption) (*empty.Empty, error)
GetTop(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APITrafficTopResponse, error)
GetWhitelist(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APITrafficWhitelistItems, error)
}
type trafficClient struct {
cc grpc.ClientConnInterface
}
func NewTrafficClient(cc grpc.ClientConnInterface) TrafficClient {
return &trafficClient{cc}
}
func (c *trafficClient) AddToBlacklist(ctx context.Context, in *AddToTrafficBlacklistRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/goautowp.Traffic/AddToBlacklist", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *trafficClient) AddToWhitelist(ctx context.Context, in *AddToTrafficWhitelistRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/goautowp.Traffic/AddToWhitelist", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *trafficClient) DeleteFromBlacklist(ctx context.Context, in *DeleteFromTrafficBlacklistRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/goautowp.Traffic/DeleteFromBlacklist", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *trafficClient) DeleteFromWhitelist(ctx context.Context, in *DeleteFromTrafficWhitelistRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/goautowp.Traffic/DeleteFromWhitelist", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *trafficClient) GetTop(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APITrafficTopResponse, error) {
out := new(APITrafficTopResponse)
err := c.cc.Invoke(ctx, "/goautowp.Traffic/GetTop", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *trafficClient) GetWhitelist(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*APITrafficWhitelistItems, error) {
out := new(APITrafficWhitelistItems)
err := c.cc.Invoke(ctx, "/goautowp.Traffic/GetWhitelist", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// TrafficServer is the server API for Traffic service.
// All implementations must embed UnimplementedTrafficServer
// for forward compatibility
type TrafficServer interface {
AddToBlacklist(context.Context, *AddToTrafficBlacklistRequest) (*empty.Empty, error)
AddToWhitelist(context.Context, *AddToTrafficWhitelistRequest) (*empty.Empty, error)
DeleteFromBlacklist(context.Context, *DeleteFromTrafficBlacklistRequest) (*empty.Empty, error)
DeleteFromWhitelist(context.Context, *DeleteFromTrafficWhitelistRequest) (*empty.Empty, error)
GetTop(context.Context, *empty.Empty) (*APITrafficTopResponse, error)
GetWhitelist(context.Context, *empty.Empty) (*APITrafficWhitelistItems, error)
mustEmbedUnimplementedTrafficServer()
}
// UnimplementedTrafficServer must be embedded to have forward compatible implementations.
type UnimplementedTrafficServer struct {
}
func (UnimplementedTrafficServer) AddToBlacklist(context.Context, *AddToTrafficBlacklistRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddToBlacklist not implemented")
}
func (UnimplementedTrafficServer) AddToWhitelist(context.Context, *AddToTrafficWhitelistRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddToWhitelist not implemented")
}
func (UnimplementedTrafficServer) DeleteFromBlacklist(context.Context, *DeleteFromTrafficBlacklistRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteFromBlacklist not implemented")
}
func (UnimplementedTrafficServer) DeleteFromWhitelist(context.Context, *DeleteFromTrafficWhitelistRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteFromWhitelist not implemented")
}
func (UnimplementedTrafficServer) GetTop(context.Context, *empty.Empty) (*APITrafficTopResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTop not implemented")
}
func (UnimplementedTrafficServer) GetWhitelist(context.Context, *empty.Empty) (*APITrafficWhitelistItems, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWhitelist not implemented")
}
func (UnimplementedTrafficServer) mustEmbedUnimplementedTrafficServer() {}
// UnsafeTrafficServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to TrafficServer will
// result in compilation errors.
type UnsafeTrafficServer interface {
mustEmbedUnimplementedTrafficServer()
}
func RegisterTrafficServer(s grpc.ServiceRegistrar, srv TrafficServer) {
s.RegisterService(&Traffic_ServiceDesc, srv)
}
func _Traffic_AddToBlacklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddToTrafficBlacklistRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TrafficServer).AddToBlacklist(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Traffic/AddToBlacklist",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TrafficServer).AddToBlacklist(ctx, req.(*AddToTrafficBlacklistRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Traffic_AddToWhitelist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddToTrafficWhitelistRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TrafficServer).AddToWhitelist(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Traffic/AddToWhitelist",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TrafficServer).AddToWhitelist(ctx, req.(*AddToTrafficWhitelistRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Traffic_DeleteFromBlacklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteFromTrafficBlacklistRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TrafficServer).DeleteFromBlacklist(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Traffic/DeleteFromBlacklist",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TrafficServer).DeleteFromBlacklist(ctx, req.(*DeleteFromTrafficBlacklistRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Traffic_DeleteFromWhitelist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteFromTrafficWhitelistRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TrafficServer).DeleteFromWhitelist(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Traffic/DeleteFromWhitelist",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TrafficServer).DeleteFromWhitelist(ctx, req.(*DeleteFromTrafficWhitelistRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Traffic_GetTop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TrafficServer).GetTop(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Traffic/GetTop",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TrafficServer).GetTop(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Traffic_GetWhitelist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TrafficServer).GetWhitelist(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Traffic/GetWhitelist",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TrafficServer).GetWhitelist(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
// Traffic_ServiceDesc is the grpc.ServiceDesc for Traffic service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Traffic_ServiceDesc = grpc.ServiceDesc{
ServiceName: "goautowp.Traffic",
HandlerType: (*TrafficServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "AddToBlacklist",
Handler: _Traffic_AddToBlacklist_Handler,
},
{
MethodName: "AddToWhitelist",
Handler: _Traffic_AddToWhitelist_Handler,
},
{
MethodName: "DeleteFromBlacklist",
Handler: _Traffic_DeleteFromBlacklist_Handler,
},
{
MethodName: "DeleteFromWhitelist",
Handler: _Traffic_DeleteFromWhitelist_Handler,
},
{
MethodName: "GetTop",
Handler: _Traffic_GetTop_Handler,
},
{
MethodName: "GetWhitelist",
Handler: _Traffic_GetWhitelist_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "spec.proto",
}
// ContactsClient is the client API for Contacts service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ContactsClient interface {
CreateContact(ctx context.Context, in *CreateContactRequest, opts ...grpc.CallOption) (*empty.Empty, error)
DeleteContact(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*empty.Empty, error)
GetContact(ctx context.Context, in *GetContactRequest, opts ...grpc.CallOption) (*Contact, error)
GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*ContactItems, error)
}
type contactsClient struct {
cc grpc.ClientConnInterface
}
func NewContactsClient(cc grpc.ClientConnInterface) ContactsClient {
return &contactsClient{cc}
}
func (c *contactsClient) CreateContact(ctx context.Context, in *CreateContactRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/goautowp.Contacts/CreateContact", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contactsClient) DeleteContact(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/goautowp.Contacts/DeleteContact", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contactsClient) GetContact(ctx context.Context, in *GetContactRequest, opts ...grpc.CallOption) (*Contact, error) {
out := new(Contact)
err := c.cc.Invoke(ctx, "/goautowp.Contacts/GetContact", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *contactsClient) GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*ContactItems, error) {
out := new(ContactItems)
err := c.cc.Invoke(ctx, "/goautowp.Contacts/GetContacts", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ContactsServer is the server API for Contacts service.
// All implementations must embed UnimplementedContactsServer
// for forward compatibility
type ContactsServer interface {
CreateContact(context.Context, *CreateContactRequest) (*empty.Empty, error)
DeleteContact(context.Context, *DeleteContactRequest) (*empty.Empty, error)
GetContact(context.Context, *GetContactRequest) (*Contact, error)
GetContacts(context.Context, *GetContactsRequest) (*ContactItems, error)
mustEmbedUnimplementedContactsServer()
}
// UnimplementedContactsServer must be embedded to have forward compatible implementations.
type UnimplementedContactsServer struct {
}
func (UnimplementedContactsServer) CreateContact(context.Context, *CreateContactRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateContact not implemented")
}
func (UnimplementedContactsServer) DeleteContact(context.Context, *DeleteContactRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteContact not implemented")
}
func (UnimplementedContactsServer) GetContact(context.Context, *GetContactRequest) (*Contact, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetContact not implemented")
}
func (UnimplementedContactsServer) GetContacts(context.Context, *GetContactsRequest) (*ContactItems, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetContacts not implemented")
}
func (UnimplementedContactsServer) mustEmbedUnimplementedContactsServer() {}
// UnsafeContactsServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ContactsServer will
// result in compilation errors.
type UnsafeContactsServer interface {
mustEmbedUnimplementedContactsServer()
}
func RegisterContactsServer(s grpc.ServiceRegistrar, srv ContactsServer) {
s.RegisterService(&Contacts_ServiceDesc, srv)
}
func _Contacts_CreateContact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateContactRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContactsServer).CreateContact(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Contacts/CreateContact",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContactsServer).CreateContact(ctx, req.(*CreateContactRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Contacts_DeleteContact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteContactRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContactsServer).DeleteContact(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Contacts/DeleteContact",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContactsServer).DeleteContact(ctx, req.(*DeleteContactRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Contacts_GetContact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetContactRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ContactsServer).GetContact(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/goautowp.Contacts/GetContact",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContactsServer).GetContact(ctx, req.(*GetContactRequest))
}