generated from VLADIMIR/template
up
This commit is contained in:
@@ -84,6 +84,8 @@ const (
|
||||
EveningDetectiveServer_GetGames_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetGames"
|
||||
EveningDetectiveServer_GetGame_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetGame"
|
||||
EveningDetectiveServer_ImportGame_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/ImportGame"
|
||||
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_GetGameExport_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetGameExport"
|
||||
EveningDetectiveServer_IssueGameTickets_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/IssueGameTickets"
|
||||
@@ -202,6 +204,9 @@ type EveningDetectiveServerClient interface {
|
||||
GetGame(ctx context.Context, in *GetGameReq, opts ...grpc.CallOption) (*GetGameRsp, error)
|
||||
// HTTP uploads are streamed by a dedicated handler, bypassing gRPC message limits.
|
||||
ImportGame(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*GameImportRsp, error)
|
||||
// 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)
|
||||
StartGameExport(ctx context.Context, in *StartGameExportReq, opts ...grpc.CallOption) (*GameExportRsp, error)
|
||||
GetGameExport(ctx context.Context, in *GetGameExportReq, opts ...grpc.CallOption) (*GameExportRsp, error)
|
||||
IssueGameTickets(ctx context.Context, in *IssueGameTicketsReq, opts ...grpc.CallOption) (*IssueGameTicketsRsp, error)
|
||||
@@ -847,6 +852,26 @@ func (c *eveningDetectiveServerClient) ImportGame(ctx context.Context, in *httpb
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) DownloadGameResultsPackage(ctx context.Context, in *GameResultsPackageReq, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(httpbody.HttpBody)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_DownloadGameResultsPackage_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) ApplyGameResultsPackage(ctx context.Context, in *ApplyGameResultsPackageReq, opts ...grpc.CallOption) (*GameResultsPackageRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GameResultsPackageRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_ApplyGameResultsPackage_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) StartGameExport(ctx context.Context, in *StartGameExportReq, opts ...grpc.CallOption) (*GameExportRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GameExportRsp)
|
||||
@@ -1404,6 +1429,9 @@ type EveningDetectiveServerServer interface {
|
||||
GetGame(context.Context, *GetGameReq) (*GetGameRsp, error)
|
||||
// HTTP uploads are streamed by a dedicated handler, bypassing gRPC message limits.
|
||||
ImportGame(context.Context, *httpbody.HttpBody) (*GameImportRsp, error)
|
||||
// Dedicated HTTP handlers stream ZIPs; gRPC retains its message size limit.
|
||||
DownloadGameResultsPackage(context.Context, *GameResultsPackageReq) (*httpbody.HttpBody, error)
|
||||
ApplyGameResultsPackage(context.Context, *ApplyGameResultsPackageReq) (*GameResultsPackageRsp, error)
|
||||
StartGameExport(context.Context, *StartGameExportReq) (*GameExportRsp, error)
|
||||
GetGameExport(context.Context, *GetGameExportReq) (*GameExportRsp, error)
|
||||
IssueGameTickets(context.Context, *IssueGameTicketsReq) (*IssueGameTicketsRsp, error)
|
||||
@@ -1643,6 +1671,12 @@ func (UnimplementedEveningDetectiveServerServer) GetGame(context.Context, *GetGa
|
||||
func (UnimplementedEveningDetectiveServerServer) ImportGame(context.Context, *httpbody.HttpBody) (*GameImportRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ImportGame not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) DownloadGameResultsPackage(context.Context, *GameResultsPackageReq) (*httpbody.HttpBody, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DownloadGameResultsPackage not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) ApplyGameResultsPackage(context.Context, *ApplyGameResultsPackageReq) (*GameResultsPackageRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyGameResultsPackage not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) StartGameExport(context.Context, *StartGameExportReq) (*GameExportRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StartGameExport not implemented")
|
||||
}
|
||||
@@ -2856,6 +2890,42 @@ func _EveningDetectiveServer_ImportGame_Handler(srv interface{}, ctx context.Con
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_DownloadGameResultsPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GameResultsPackageReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).DownloadGameResultsPackage(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_DownloadGameResultsPackage_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).DownloadGameResultsPackage(ctx, req.(*GameResultsPackageReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_ApplyGameResultsPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ApplyGameResultsPackageReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).ApplyGameResultsPackage(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_ApplyGameResultsPackage_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).ApplyGameResultsPackage(ctx, req.(*ApplyGameResultsPackageReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_StartGameExport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(StartGameExportReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -3977,6 +4047,14 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "ImportGame",
|
||||
Handler: _EveningDetectiveServer_ImportGame_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DownloadGameResultsPackage",
|
||||
Handler: _EveningDetectiveServer_DownloadGameResultsPackage_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ApplyGameResultsPackage",
|
||||
Handler: _EveningDetectiveServer_ApplyGameResultsPackage_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "StartGameExport",
|
||||
Handler: _EveningDetectiveServer_StartGameExport_Handler,
|
||||
|
||||
Reference in New Issue
Block a user