generated from VLADIMIR/template
up
This commit is contained in:
@@ -83,6 +83,7 @@ const (
|
||||
EveningDetectiveServer_AddGame_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AddGame"
|
||||
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_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"
|
||||
@@ -199,6 +200,8 @@ type EveningDetectiveServerClient interface {
|
||||
AddGame(ctx context.Context, in *AddGameReq, opts ...grpc.CallOption) (*AddGameRsp, error)
|
||||
GetGames(ctx context.Context, in *GetGamesReq, opts ...grpc.CallOption) (*GetGamesRsp, error)
|
||||
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)
|
||||
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)
|
||||
@@ -834,6 +837,16 @@ func (c *eveningDetectiveServerClient) GetGame(ctx context.Context, in *GetGameR
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) ImportGame(ctx context.Context, in *httpbody.HttpBody, opts ...grpc.CallOption) (*GameImportRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GameImportRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_ImportGame_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)
|
||||
@@ -1389,6 +1402,8 @@ type EveningDetectiveServerServer interface {
|
||||
AddGame(context.Context, *AddGameReq) (*AddGameRsp, error)
|
||||
GetGames(context.Context, *GetGamesReq) (*GetGamesRsp, error)
|
||||
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)
|
||||
StartGameExport(context.Context, *StartGameExportReq) (*GameExportRsp, error)
|
||||
GetGameExport(context.Context, *GetGameExportReq) (*GameExportRsp, error)
|
||||
IssueGameTickets(context.Context, *IssueGameTicketsReq) (*IssueGameTicketsRsp, error)
|
||||
@@ -1625,6 +1640,9 @@ func (UnimplementedEveningDetectiveServerServer) GetGames(context.Context, *GetG
|
||||
func (UnimplementedEveningDetectiveServerServer) GetGame(context.Context, *GetGameReq) (*GetGameRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetGame not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) ImportGame(context.Context, *httpbody.HttpBody) (*GameImportRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ImportGame not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) StartGameExport(context.Context, *StartGameExportReq) (*GameExportRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method StartGameExport not implemented")
|
||||
}
|
||||
@@ -2820,6 +2838,24 @@ func _EveningDetectiveServer_GetGame_Handler(srv interface{}, ctx context.Contex
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_ImportGame_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(httpbody.HttpBody)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).ImportGame(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_ImportGame_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).ImportGame(ctx, req.(*httpbody.HttpBody))
|
||||
}
|
||||
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 {
|
||||
@@ -3937,6 +3973,10 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "GetGame",
|
||||
Handler: _EveningDetectiveServer_GetGame_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ImportGame",
|
||||
Handler: _EveningDetectiveServer_ImportGame_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "StartGameExport",
|
||||
Handler: _EveningDetectiveServer_StartGameExport_Handler,
|
||||
|
||||
Reference in New Issue
Block a user