generated from VLADIMIR/template
add all methods
This commit is contained in:
+190
-5
@@ -19,11 +19,16 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
const (
|
||||
EveningDetective_Ping_FullMethodName = "/crabs.evening_detective.EveningDetective/Ping"
|
||||
EveningDetective_AddTeams_FullMethodName = "/crabs.evening_detective.EveningDetective/AddTeams"
|
||||
EveningDetective_GetTeams_FullMethodName = "/crabs.evening_detective.EveningDetective/GetTeams"
|
||||
EveningDetective_DeleteTeams_FullMethodName = "/crabs.evening_detective.EveningDetective/DeleteTeams"
|
||||
EveningDetective_AddAction_FullMethodName = "/crabs.evening_detective.EveningDetective/AddAction"
|
||||
EveningDetective_Ping_FullMethodName = "/crabs.evening_detective.EveningDetective/Ping"
|
||||
EveningDetective_AddTeams_FullMethodName = "/crabs.evening_detective.EveningDetective/AddTeams"
|
||||
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"
|
||||
EveningDetective_GiveApplications_FullMethodName = "/crabs.evening_detective.EveningDetective/GiveApplications"
|
||||
)
|
||||
|
||||
// EveningDetectiveClient is the client API for EveningDetective service.
|
||||
@@ -33,8 +38,13 @@ type EveningDetectiveClient interface {
|
||||
Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingRsp, error)
|
||||
AddTeams(ctx context.Context, in *AddTeamsReq, opts ...grpc.CallOption) (*AddTeamsRsp, error)
|
||||
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)
|
||||
GiveApplications(ctx context.Context, in *GiveApplicationsReq, opts ...grpc.CallOption) (*GiveApplicationsRsp, error)
|
||||
}
|
||||
|
||||
type eveningDetectiveClient struct {
|
||||
@@ -72,6 +82,24 @@ func (c *eveningDetectiveClient) GetTeams(ctx context.Context, in *GetTeamsReq,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveClient) GetTeamsCSV(ctx context.Context, in *GetTeamsCSVReq, opts ...grpc.CallOption) (*GetTeamsCSVRsp, error) {
|
||||
out := new(GetTeamsCSVRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetective_GetTeamsCSV_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveClient) GetTeam(ctx context.Context, in *GetTeamReq, opts ...grpc.CallOption) (*GetTeamRsp, error) {
|
||||
out := new(GetTeamRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetective_GetTeam_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
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...)
|
||||
@@ -90,6 +118,33 @@ func (c *eveningDetectiveClient) AddAction(ctx context.Context, in *AddActionReq
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveClient) GameStart(ctx context.Context, in *GameStartReq, opts ...grpc.CallOption) (*GameStartRsp, error) {
|
||||
out := new(GameStartRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetective_GameStart_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveClient) GameStop(ctx context.Context, in *GameStopReq, opts ...grpc.CallOption) (*GameStopRsp, error) {
|
||||
out := new(GameStopRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetective_GameStop_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveClient) GiveApplications(ctx context.Context, in *GiveApplicationsReq, opts ...grpc.CallOption) (*GiveApplicationsRsp, error) {
|
||||
out := new(GiveApplicationsRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetective_GiveApplications_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// EveningDetectiveServer is the server API for EveningDetective service.
|
||||
// All implementations must embed UnimplementedEveningDetectiveServer
|
||||
// for forward compatibility
|
||||
@@ -97,8 +152,13 @@ type EveningDetectiveServer interface {
|
||||
Ping(context.Context, *PingReq) (*PingRsp, error)
|
||||
AddTeams(context.Context, *AddTeamsReq) (*AddTeamsRsp, error)
|
||||
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)
|
||||
GiveApplications(context.Context, *GiveApplicationsReq) (*GiveApplicationsRsp, error)
|
||||
mustEmbedUnimplementedEveningDetectiveServer()
|
||||
}
|
||||
|
||||
@@ -115,12 +175,27 @@ func (UnimplementedEveningDetectiveServer) AddTeams(context.Context, *AddTeamsRe
|
||||
func (UnimplementedEveningDetectiveServer) GetTeams(context.Context, *GetTeamsReq) (*GetTeamsRsp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetTeams not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServer) GetTeamsCSV(context.Context, *GetTeamsCSVReq) (*GetTeamsCSVRsp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetTeamsCSV not implemented")
|
||||
}
|
||||
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")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServer) GameStart(context.Context, *GameStartReq) (*GameStartRsp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GameStart not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServer) GameStop(context.Context, *GameStopReq) (*GameStopRsp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GameStop not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServer) GiveApplications(context.Context, *GiveApplicationsReq) (*GiveApplicationsRsp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GiveApplications not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServer) mustEmbedUnimplementedEveningDetectiveServer() {}
|
||||
|
||||
// UnsafeEveningDetectiveServer may be embedded to opt out of forward compatibility for this service.
|
||||
@@ -188,6 +263,42 @@ func _EveningDetective_GetTeams_Handler(srv interface{}, ctx context.Context, de
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetective_GetTeamsCSV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetTeamsCSVReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServer).GetTeamsCSV(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetective_GetTeamsCSV_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServer).GetTeamsCSV(ctx, req.(*GetTeamsCSVReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetective_GetTeam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetTeamReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServer).GetTeam(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetective_GetTeam_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServer).GetTeam(ctx, req.(*GetTeamReq))
|
||||
}
|
||||
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 {
|
||||
@@ -224,6 +335,60 @@ func _EveningDetective_AddAction_Handler(srv interface{}, ctx context.Context, d
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetective_GameStart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GameStartReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServer).GameStart(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetective_GameStart_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServer).GameStart(ctx, req.(*GameStartReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetective_GameStop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GameStopReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServer).GameStop(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetective_GameStop_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServer).GameStop(ctx, req.(*GameStopReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetective_GiveApplications_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GiveApplicationsReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServer).GiveApplications(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetective_GiveApplications_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServer).GiveApplications(ctx, req.(*GiveApplicationsReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// EveningDetective_ServiceDesc is the grpc.ServiceDesc for EveningDetective service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -243,6 +408,14 @@ var EveningDetective_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "GetTeams",
|
||||
Handler: _EveningDetective_GetTeams_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetTeamsCSV",
|
||||
Handler: _EveningDetective_GetTeamsCSV_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetTeam",
|
||||
Handler: _EveningDetective_GetTeam_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteTeams",
|
||||
Handler: _EveningDetective_DeleteTeams_Handler,
|
||||
@@ -251,6 +424,18 @@ var EveningDetective_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "AddAction",
|
||||
Handler: _EveningDetective_AddAction_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GameStart",
|
||||
Handler: _EveningDetective_GameStart_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GameStop",
|
||||
Handler: _EveningDetective_GameStop_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GiveApplications",
|
||||
Handler: _EveningDetective_GiveApplications_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "main.proto",
|
||||
|
||||
Reference in New Issue
Block a user