From 21262a2d1ece98cf399ae6dedaeb99880dfe9c96 Mon Sep 17 00:00:00 2001 From: codeskyblue Date: Mon, 19 Oct 2015 19:59:01 +0800 Subject: [PATCH] update goproto dep --- gosuvpb/gosuv.pb.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gosuvpb/gosuv.pb.go b/gosuvpb/gosuv.pb.go index 7873a12..65329f8 100644 --- a/gosuvpb/gosuv.pb.go +++ b/gosuvpb/gosuv.pb.go @@ -182,9 +182,9 @@ func RegisterGoSuvServer(s *grpc.Server, srv GoSuvServer) { s.RegisterService(&_GoSuv_serviceDesc, srv) } -func _GoSuv_Shutdown_Handler(srv interface{}, ctx context.Context, codec grpc.Codec, buf []byte) (interface{}, error) { +func _GoSuv_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { in := new(NopRequest) - if err := codec.Unmarshal(buf, in); err != nil { + if err := dec(in); err != nil { return nil, err } out, err := srv.(GoSuvServer).Shutdown(ctx, in) @@ -194,9 +194,9 @@ func _GoSuv_Shutdown_Handler(srv interface{}, ctx context.Context, codec grpc.Co return out, nil } -func _GoSuv_Version_Handler(srv interface{}, ctx context.Context, codec grpc.Codec, buf []byte) (interface{}, error) { +func _GoSuv_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { in := new(NopRequest) - if err := codec.Unmarshal(buf, in); err != nil { + if err := dec(in); err != nil { return nil, err } out, err := srv.(GoSuvServer).Version(ctx, in) @@ -206,9 +206,9 @@ func _GoSuv_Version_Handler(srv interface{}, ctx context.Context, codec grpc.Cod return out, nil } -func _GoSuv_Status_Handler(srv interface{}, ctx context.Context, codec grpc.Codec, buf []byte) (interface{}, error) { +func _GoSuv_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { in := new(NopRequest) - if err := codec.Unmarshal(buf, in); err != nil { + if err := dec(in); err != nil { return nil, err } out, err := srv.(GoSuvServer).Status(ctx, in) @@ -218,9 +218,9 @@ func _GoSuv_Status_Handler(srv interface{}, ctx context.Context, codec grpc.Code return out, nil } -func _GoSuv_Create_Handler(srv interface{}, ctx context.Context, codec grpc.Codec, buf []byte) (interface{}, error) { +func _GoSuv_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { in := new(ProgramInfo) - if err := codec.Unmarshal(buf, in); err != nil { + if err := dec(in); err != nil { return nil, err } out, err := srv.(GoSuvServer).Create(ctx, in) @@ -332,9 +332,9 @@ func RegisterProgramServer(s *grpc.Server, srv ProgramServer) { s.RegisterService(&_Program_serviceDesc, srv) } -func _Program_Start_Handler(srv interface{}, ctx context.Context, codec grpc.Codec, buf []byte) (interface{}, error) { +func _Program_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { in := new(Request) - if err := codec.Unmarshal(buf, in); err != nil { + if err := dec(in); err != nil { return nil, err } out, err := srv.(ProgramServer).Start(ctx, in) @@ -344,9 +344,9 @@ func _Program_Start_Handler(srv interface{}, ctx context.Context, codec grpc.Cod return out, nil } -func _Program_Stop_Handler(srv interface{}, ctx context.Context, codec grpc.Codec, buf []byte) (interface{}, error) { +func _Program_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) { in := new(Request) - if err := codec.Unmarshal(buf, in); err != nil { + if err := dec(in); err != nil { return nil, err } out, err := srv.(ProgramServer).Stop(ctx, in)