decodeFunc -> dec
This commit is contained in:
@ -419,9 +419,9 @@ func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) {
|
|||||||
s.RegisterService(&_TestService_serviceDesc, srv)
|
s.RegisterService(&_TestService_serviceDesc, srv)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, decodeFunc func(interface{}) error) (interface{}, error) {
|
func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
|
||||||
in := new(SimpleRequest)
|
in := new(SimpleRequest)
|
||||||
if err := decodeFunc(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
out, err := srv.(TestServiceServer).UnaryCall(ctx, in)
|
out, err := srv.(TestServiceServer).UnaryCall(ctx, in)
|
||||||
|
@ -84,9 +84,9 @@ func RegisterGreeterServer(s *grpc.Server, srv GreeterServer) {
|
|||||||
s.RegisterService(&_Greeter_serviceDesc, srv)
|
s.RegisterService(&_Greeter_serviceDesc, srv)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Greeter_SayHello_Handler(srv interface{}, ctx context.Context, decodeFunc func(interface{}) error) (interface{}, error) {
|
func _Greeter_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
|
||||||
in := new(HelloRequest)
|
in := new(HelloRequest)
|
||||||
if err := decodeFunc(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
out, err := srv.(GreeterServer).SayHello(ctx, in)
|
out, err := srv.(GreeterServer).SayHello(ctx, in)
|
||||||
|
@ -310,9 +310,9 @@ func RegisterRouteGuideServer(s *grpc.Server, srv RouteGuideServer) {
|
|||||||
s.RegisterService(&_RouteGuide_serviceDesc, srv)
|
s.RegisterService(&_RouteGuide_serviceDesc, srv)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _RouteGuide_GetFeature_Handler(srv interface{}, ctx context.Context, decodeFunc func(interface{}) error) (interface{}, error) {
|
func _RouteGuide_GetFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
|
||||||
in := new(Point)
|
in := new(Point)
|
||||||
if err := decodeFunc(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
out, err := srv.(RouteGuideServer).GetFeature(ctx, in)
|
out, err := srv.(RouteGuideServer).GetFeature(ctx, in)
|
||||||
|
@ -108,9 +108,9 @@ func RegisterHealthServer(s *grpc.Server, srv HealthServer) {
|
|||||||
s.RegisterService(&_Health_serviceDesc, srv)
|
s.RegisterService(&_Health_serviceDesc, srv)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Health_Check_Handler(srv interface{}, ctx context.Context, decodeFunc func(interface{}) error) (interface{}, error) {
|
func _Health_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
|
||||||
in := new(HealthCheckRequest)
|
in := new(HealthCheckRequest)
|
||||||
if err := decodeFunc(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
out, err := srv.(HealthServer).Check(ctx, in)
|
out, err := srv.(HealthServer).Check(ctx, in)
|
||||||
|
@ -539,9 +539,9 @@ func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) {
|
|||||||
s.RegisterService(&_TestService_serviceDesc, srv)
|
s.RegisterService(&_TestService_serviceDesc, srv)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _TestService_EmptyCall_Handler(srv interface{}, ctx context.Context, decodeFunc func(interface{}) error) (interface{}, error) {
|
func _TestService_EmptyCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
|
||||||
in := new(Empty)
|
in := new(Empty)
|
||||||
if err := decodeFunc(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
out, err := srv.(TestServiceServer).EmptyCall(ctx, in)
|
out, err := srv.(TestServiceServer).EmptyCall(ctx, in)
|
||||||
@ -551,9 +551,9 @@ func _TestService_EmptyCall_Handler(srv interface{}, ctx context.Context, decode
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, decodeFunc func(interface{}) error) (interface{}, error) {
|
func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
|
||||||
in := new(SimpleRequest)
|
in := new(SimpleRequest)
|
||||||
if err := decodeFunc(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
out, err := srv.(TestServiceServer).UnaryCall(ctx, in)
|
out, err := srv.(TestServiceServer).UnaryCall(ctx, in)
|
||||||
|
@ -52,7 +52,7 @@ import (
|
|||||||
"google.golang.org/grpc/transport"
|
"google.golang.org/grpc/transport"
|
||||||
)
|
)
|
||||||
|
|
||||||
type methodHandler func(srv interface{}, ctx context.Context, decodeFunc func(interface{}) error) (interface{}, error)
|
type methodHandler func(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error)
|
||||||
|
|
||||||
// MethodDesc represents an RPC service's method specification.
|
// MethodDesc represents an RPC service's method specification.
|
||||||
type MethodDesc struct {
|
type MethodDesc struct {
|
||||||
|
@ -539,9 +539,9 @@ func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) {
|
|||||||
s.RegisterService(&_TestService_serviceDesc, srv)
|
s.RegisterService(&_TestService_serviceDesc, srv)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _TestService_EmptyCall_Handler(srv interface{}, ctx context.Context, decodeFunc func(interface{}) error) (interface{}, error) {
|
func _TestService_EmptyCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
|
||||||
in := new(Empty)
|
in := new(Empty)
|
||||||
if err := decodeFunc(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
out, err := srv.(TestServiceServer).EmptyCall(ctx, in)
|
out, err := srv.(TestServiceServer).EmptyCall(ctx, in)
|
||||||
@ -551,9 +551,9 @@ func _TestService_EmptyCall_Handler(srv interface{}, ctx context.Context, decode
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, decodeFunc func(interface{}) error) (interface{}, error) {
|
func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
|
||||||
in := new(SimpleRequest)
|
in := new(SimpleRequest)
|
||||||
if err := decodeFunc(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
out, err := srv.(TestServiceServer).UnaryCall(ctx, in)
|
out, err := srv.(TestServiceServer).UnaryCall(ctx, in)
|
||||||
|
Reference in New Issue
Block a user