@@ -48,17 +48,6 @@ type MyServiceClientInterface interface {
48
48
GoDoNothing () (error )
49
49
}
50
50
51
- type MyServiceContextClientInterface interface {
52
- MyServiceClientInterface
53
- PingContext (ctx context.Context ) (error )
54
- GetRandomDataContext (ctx context.Context ) (string , error )
55
- HasDataByIdContext (ctx context.Context , id int64 ) (bool , error )
56
- GoGetDataByIdContext (ctx context.Context , id int64 ) (string , error )
57
- PutDataByIdContext (ctx context.Context , id int64 , data string ) (error )
58
- LobDataByIdContext (ctx context.Context , id int64 , data string ) (error )
59
- GoDoNothingContext (ctx context.Context ) (error )
60
- }
61
-
62
51
type MyServiceChannelClient struct {
63
52
ch thrift.RequestChannel
64
53
}
@@ -80,7 +69,6 @@ type MyServiceClient struct {
80
69
}
81
70
// Compile time interface enforcer
82
71
var _ MyServiceClientInterface = (* MyServiceClient )(nil )
83
- var _ MyServiceContextClientInterface = (* MyServiceClient )(nil )
84
72
85
73
func NewMyServiceClient (prot thrift.Protocol ) * MyServiceClient {
86
74
return & MyServiceClient {
@@ -672,12 +660,6 @@ type MyServicePrioParentClientInterface interface {
672
660
Pong () (error )
673
661
}
674
662
675
- type MyServicePrioParentContextClientInterface interface {
676
- MyServicePrioParentClientInterface
677
- PingContext (ctx context.Context ) (error )
678
- PongContext (ctx context.Context ) (error )
679
- }
680
-
681
663
type MyServicePrioParentChannelClient struct {
682
664
ch thrift.RequestChannel
683
665
}
@@ -699,7 +681,6 @@ type MyServicePrioParentClient struct {
699
681
}
700
682
// Compile time interface enforcer
701
683
var _ MyServicePrioParentClientInterface = (* MyServicePrioParentClient )(nil )
702
- var _ MyServicePrioParentContextClientInterface = (* MyServicePrioParentClient )(nil )
703
684
704
685
func NewMyServicePrioParentClient (prot thrift.Protocol ) * MyServicePrioParentClient {
705
686
return & MyServicePrioParentClient {
@@ -921,14 +902,6 @@ type MyServicePrioChildClientInterface interface {
921
902
Pang () (error )
922
903
}
923
904
924
- type MyServicePrioChildContextClientInterface interface {
925
- MyServicePrioChildClientInterface
926
- // Inherited/extended service
927
- MyServicePrioParentContextClientInterface
928
-
929
- PangContext (ctx context.Context ) (error )
930
- }
931
-
932
905
type MyServicePrioChildChannelClient struct {
933
906
// Inherited/extended service
934
907
* MyServicePrioParentChannelClient
@@ -955,7 +928,6 @@ type MyServicePrioChildClient struct {
955
928
}
956
929
// Compile time interface enforcer
957
930
var _ MyServicePrioChildClientInterface = (* MyServicePrioChildClient )(nil )
958
- var _ MyServicePrioChildContextClientInterface = (* MyServicePrioChildClient )(nil )
959
931
960
932
func NewMyServicePrioChildClient (prot thrift.Protocol ) * MyServicePrioChildClient {
961
933
return & MyServicePrioChildClient {
@@ -1074,11 +1046,6 @@ type BadServiceClientInterface interface {
1074
1046
Bar () (int32 , error )
1075
1047
}
1076
1048
1077
- type BadServiceContextClientInterface interface {
1078
- BadServiceClientInterface
1079
- BarContext (ctx context.Context ) (int32 , error )
1080
- }
1081
-
1082
1049
type BadServiceChannelClient struct {
1083
1050
ch thrift.RequestChannel
1084
1051
}
@@ -1100,7 +1067,6 @@ type BadServiceClient struct {
1100
1067
}
1101
1068
// Compile time interface enforcer
1102
1069
var _ BadServiceClientInterface = (* BadServiceClient )(nil )
1103
- var _ BadServiceContextClientInterface = (* BadServiceClient )(nil )
1104
1070
1105
1071
func NewBadServiceClient (prot thrift.Protocol ) * BadServiceClient {
1106
1072
return & BadServiceClient {
@@ -1250,13 +1216,6 @@ type FooBarBazServiceClientInterface interface {
1250
1216
Baz () (error )
1251
1217
}
1252
1218
1253
- type FooBarBazServiceContextClientInterface interface {
1254
- FooBarBazServiceClientInterface
1255
- FooStructuredContext (ctx context.Context ) (error )
1256
- BarNonStructuredContext (ctx context.Context ) (error )
1257
- BazContext (ctx context.Context ) (error )
1258
- }
1259
-
1260
1219
type FooBarBazServiceChannelClient struct {
1261
1220
ch thrift.RequestChannel
1262
1221
}
@@ -1278,7 +1237,6 @@ type FooBarBazServiceClient struct {
1278
1237
}
1279
1238
// Compile time interface enforcer
1280
1239
var _ FooBarBazServiceClientInterface = (* FooBarBazServiceClient )(nil )
1281
- var _ FooBarBazServiceContextClientInterface = (* FooBarBazServiceClient )(nil )
1282
1240
1283
1241
func NewFooBarBazServiceClient (prot thrift.Protocol ) * FooBarBazServiceClient {
1284
1242
return & FooBarBazServiceClient {
0 commit comments