generated from VLADIMIR/template
up
This commit is contained in:
@@ -89,6 +89,7 @@ const (
|
||||
EveningDetectiveServer_DownloadGameResultsPackage_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DownloadGameResultsPackage"
|
||||
EveningDetectiveServer_ApplyGameResultsPackage_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/ApplyGameResultsPackage"
|
||||
EveningDetectiveServer_StartGameExport_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/StartGameExport"
|
||||
EveningDetectiveServer_ResetGameLocalMode_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/ResetGameLocalMode"
|
||||
EveningDetectiveServer_GetGameExport_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetGameExport"
|
||||
EveningDetectiveServer_IssueGameTickets_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/IssueGameTickets"
|
||||
EveningDetectiveServer_GetTicket_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetTicket"
|
||||
@@ -214,7 +215,10 @@ type EveningDetectiveServerClient interface {
|
||||
// Dedicated HTTP handlers stream ZIPs; gRPC retains its message size limit.
|
||||
DownloadGameResultsPackage(ctx context.Context, in *GameResultsPackageReq, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
|
||||
ApplyGameResultsPackage(ctx context.Context, in *ApplyGameResultsPackageReq, opts ...grpc.CallOption) (*GameResultsPackageRsp, error)
|
||||
// Each request creates a fresh setup package, replacing any unfinished preparation.
|
||||
StartGameExport(ctx context.Context, in *StartGameExportReq, opts ...grpc.CallOption) (*GameExportRsp, error)
|
||||
// Release the transfer without discarding ready packages or their future results.
|
||||
ResetGameLocalMode(ctx context.Context, in *ResetGameLocalModeReq, opts ...grpc.CallOption) (*ResetGameLocalModeRsp, error)
|
||||
GetGameExport(ctx context.Context, in *GetGameExportReq, opts ...grpc.CallOption) (*GameExportRsp, error)
|
||||
IssueGameTickets(ctx context.Context, in *IssueGameTicketsReq, opts ...grpc.CallOption) (*IssueGameTicketsRsp, error)
|
||||
GetTicket(ctx context.Context, in *GetTicketReq, opts ...grpc.CallOption) (*GetTicketRsp, error)
|
||||
@@ -912,6 +916,16 @@ func (c *eveningDetectiveServerClient) StartGameExport(ctx context.Context, in *
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) ResetGameLocalMode(ctx context.Context, in *ResetGameLocalModeReq, opts ...grpc.CallOption) (*ResetGameLocalModeRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ResetGameLocalModeRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_ResetGameLocalMode_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) GetGameExport(ctx context.Context, in *GetGameExportReq, opts ...grpc.CallOption) (*GameExportRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GameExportRsp)
|
||||
@@ -1494,7 +1508,10 @@ type EveningDetectiveServerServer interface {
|
||||
// Dedicated HTTP handlers stream ZIPs; gRPC retains its message size limit.
|
||||
DownloadGameResultsPackage(context.Context, *GameResultsPackageReq) (*httpbody.HttpBody, error)
|
||||
ApplyGameResultsPackage(context.Context, *ApplyGameResultsPackageReq) (*GameResultsPackageRsp, error)
|
||||
// Each request creates a fresh setup package, replacing any unfinished preparation.
|
||||
StartGameExport(context.Context, *StartGameExportReq) (*GameExportRsp, error)
|
||||
// Release the transfer without discarding ready packages or their future results.
|
||||
ResetGameLocalMode(context.Context, *ResetGameLocalModeReq) (*ResetGameLocalModeRsp, error)
|
||||
GetGameExport(context.Context, *GetGameExportReq) (*GameExportRsp, error)
|
||||
IssueGameTickets(context.Context, *IssueGameTicketsReq) (*IssueGameTicketsRsp, error)
|
||||
GetTicket(context.Context, *GetTicketReq) (*GetTicketRsp, error)
|
||||
@@ -1751,6 +1768,9 @@ func (UnimplementedEveningDetectiveServerServer) ApplyGameResultsPackage(context
|
||||
func (UnimplementedEveningDetectiveServerServer) StartGameExport(context.Context, *StartGameExportReq) (*GameExportRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StartGameExport not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) ResetGameLocalMode(context.Context, *ResetGameLocalModeReq) (*ResetGameLocalModeRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ResetGameLocalMode not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) GetGameExport(context.Context, *GetGameExportReq) (*GameExportRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetGameExport not implemented")
|
||||
}
|
||||
@@ -3060,6 +3080,24 @@ func _EveningDetectiveServer_StartGameExport_Handler(srv interface{}, ctx contex
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_ResetGameLocalMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ResetGameLocalModeReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).ResetGameLocalMode(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_ResetGameLocalMode_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).ResetGameLocalMode(ctx, req.(*ResetGameLocalModeReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_GetGameExport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetGameExportReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -4237,6 +4275,10 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "StartGameExport",
|
||||
Handler: _EveningDetectiveServer_StartGameExport_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ResetGameLocalMode",
|
||||
Handler: _EveningDetectiveServer_ResetGameLocalMode_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetGameExport",
|
||||
Handler: _EveningDetectiveServer_GetGameExport_Handler,
|
||||
|
||||
Reference in New Issue
Block a user