generated from VLADIMIR/template
clear
This commit is contained in:
@@ -24,7 +24,6 @@ const (
|
||||
EveningDetective_GetTeams_FullMethodName = "/crabs.evening_detective.EveningDetective/GetTeams"
|
||||
EveningDetective_GetTeamsCSV_FullMethodName = "/crabs.evening_detective.EveningDetective/GetTeamsCSV"
|
||||
EveningDetective_GetTeam_FullMethodName = "/crabs.evening_detective.EveningDetective/GetTeam"
|
||||
EveningDetective_DeleteTeams_FullMethodName = "/crabs.evening_detective.EveningDetective/DeleteTeams"
|
||||
EveningDetective_AddAction_FullMethodName = "/crabs.evening_detective.EveningDetective/AddAction"
|
||||
EveningDetective_GameStart_FullMethodName = "/crabs.evening_detective.EveningDetective/GameStart"
|
||||
EveningDetective_GameStop_FullMethodName = "/crabs.evening_detective.EveningDetective/GameStop"
|
||||
@@ -40,7 +39,6 @@ type EveningDetectiveClient interface {
|
||||
GetTeams(ctx context.Context, in *GetTeamsReq, opts ...grpc.CallOption) (*GetTeamsRsp, error)
|
||||
GetTeamsCSV(ctx context.Context, in *GetTeamsCSVReq, opts ...grpc.CallOption) (*GetTeamsCSVRsp, error)
|
||||
GetTeam(ctx context.Context, in *GetTeamReq, opts ...grpc.CallOption) (*GetTeamRsp, error)
|
||||
DeleteTeams(ctx context.Context, in *DeleteTeamsReq, opts ...grpc.CallOption) (*DeleteTeamsRsp, error)
|
||||
AddAction(ctx context.Context, in *AddActionReq, opts ...grpc.CallOption) (*AddActionRsp, error)
|
||||
GameStart(ctx context.Context, in *GameStartReq, opts ...grpc.CallOption) (*GameStartRsp, error)
|
||||
GameStop(ctx context.Context, in *GameStopReq, opts ...grpc.CallOption) (*GameStopRsp, error)
|
||||
@@ -100,15 +98,6 @@ func (c *eveningDetectiveClient) GetTeam(ctx context.Context, in *GetTeamReq, op
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveClient) DeleteTeams(ctx context.Context, in *DeleteTeamsReq, opts ...grpc.CallOption) (*DeleteTeamsRsp, error) {
|
||||
out := new(DeleteTeamsRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetective_DeleteTeams_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveClient) AddAction(ctx context.Context, in *AddActionReq, opts ...grpc.CallOption) (*AddActionRsp, error) {
|
||||
out := new(AddActionRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetective_AddAction_FullMethodName, in, out, opts...)
|
||||
@@ -154,7 +143,6 @@ type EveningDetectiveServer interface {
|
||||
GetTeams(context.Context, *GetTeamsReq) (*GetTeamsRsp, error)
|
||||
GetTeamsCSV(context.Context, *GetTeamsCSVReq) (*GetTeamsCSVRsp, error)
|
||||
GetTeam(context.Context, *GetTeamReq) (*GetTeamRsp, error)
|
||||
DeleteTeams(context.Context, *DeleteTeamsReq) (*DeleteTeamsRsp, error)
|
||||
AddAction(context.Context, *AddActionReq) (*AddActionRsp, error)
|
||||
GameStart(context.Context, *GameStartReq) (*GameStartRsp, error)
|
||||
GameStop(context.Context, *GameStopReq) (*GameStopRsp, error)
|
||||
@@ -181,9 +169,6 @@ func (UnimplementedEveningDetectiveServer) GetTeamsCSV(context.Context, *GetTeam
|
||||
func (UnimplementedEveningDetectiveServer) GetTeam(context.Context, *GetTeamReq) (*GetTeamRsp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetTeam not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServer) DeleteTeams(context.Context, *DeleteTeamsReq) (*DeleteTeamsRsp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteTeams not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServer) AddAction(context.Context, *AddActionReq) (*AddActionRsp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AddAction not implemented")
|
||||
}
|
||||
@@ -299,24 +284,6 @@ func _EveningDetective_GetTeam_Handler(srv interface{}, ctx context.Context, dec
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetective_DeleteTeams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteTeamsReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServer).DeleteTeams(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetective_DeleteTeams_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServer).DeleteTeams(ctx, req.(*DeleteTeamsReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetective_AddAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddActionReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -416,10 +383,6 @@ var EveningDetective_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "GetTeam",
|
||||
Handler: _EveningDetective_GetTeam_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteTeams",
|
||||
Handler: _EveningDetective_DeleteTeams_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddAction",
|
||||
Handler: _EveningDetective_AddAction_Handler,
|
||||
|
||||
Reference in New Issue
Block a user