generated from VLADIMIR/template
up
This commit is contained in:
@@ -47,6 +47,13 @@ const (
|
||||
EveningDetectiveServer_GetPermissions_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetPermissions"
|
||||
EveningDetectiveServer_UploadFile_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UploadFile"
|
||||
EveningDetectiveServer_DownloadFile_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DownloadFile"
|
||||
EveningDetectiveServer_GetPlaylists_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetPlaylists"
|
||||
EveningDetectiveServer_CreatePlaylist_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/CreatePlaylist"
|
||||
EveningDetectiveServer_UpdatePlaylist_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UpdatePlaylist"
|
||||
EveningDetectiveServer_DeletePlaylist_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DeletePlaylist"
|
||||
EveningDetectiveServer_UploadPlaylistTrack_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UploadPlaylistTrack"
|
||||
EveningDetectiveServer_DeletePlaylistTrack_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/DeletePlaylistTrack"
|
||||
EveningDetectiveServer_SetScenarioPlaylist_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/SetScenarioPlaylist"
|
||||
EveningDetectiveServer_AddScenario_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AddScenario"
|
||||
EveningDetectiveServer_GetMyScenarios_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetMyScenarios"
|
||||
EveningDetectiveServer_GetScenariosCatalog_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetScenariosCatalog"
|
||||
@@ -76,6 +83,9 @@ const (
|
||||
EveningDetectiveServer_CreateScreenSession_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/CreateScreenSession"
|
||||
EveningDetectiveServer_GetScreenState_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetScreenState"
|
||||
EveningDetectiveServer_GetGameScreens_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetGameScreens"
|
||||
EveningDetectiveServer_GetGameMusic_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/GetGameMusic"
|
||||
EveningDetectiveServer_SetGameMusic_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/SetGameMusic"
|
||||
EveningDetectiveServer_AdvanceScreenMusic_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/AdvanceScreenMusic"
|
||||
EveningDetectiveServer_BindScreen_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/BindScreen"
|
||||
EveningDetectiveServer_UnbindScreen_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/UnbindScreen"
|
||||
EveningDetectiveServer_SetScreenSound_FullMethodName = "/crabs.evening_detective_server.EveningDetectiveServer/SetScreenSound"
|
||||
@@ -143,6 +153,13 @@ type EveningDetectiveServerClient interface {
|
||||
GetPermissions(ctx context.Context, in *GetPermissionsReq, opts ...grpc.CallOption) (*GetPermissionsRsp, error)
|
||||
UploadFile(ctx context.Context, in *UploadFileReq, opts ...grpc.CallOption) (*UploadFileRsp, error)
|
||||
DownloadFile(ctx context.Context, in *DownloadFileReq, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
|
||||
GetPlaylists(ctx context.Context, in *GetPlaylistsReq, opts ...grpc.CallOption) (*GetPlaylistsRsp, error)
|
||||
CreatePlaylist(ctx context.Context, in *CreatePlaylistReq, opts ...grpc.CallOption) (*CreatePlaylistRsp, error)
|
||||
UpdatePlaylist(ctx context.Context, in *UpdatePlaylistReq, opts ...grpc.CallOption) (*UpdatePlaylistRsp, error)
|
||||
DeletePlaylist(ctx context.Context, in *DeletePlaylistReq, opts ...grpc.CallOption) (*DeletePlaylistRsp, error)
|
||||
UploadPlaylistTrack(ctx context.Context, in *UploadPlaylistTrackReq, opts ...grpc.CallOption) (*UploadPlaylistTrackRsp, error)
|
||||
DeletePlaylistTrack(ctx context.Context, in *DeletePlaylistTrackReq, opts ...grpc.CallOption) (*DeletePlaylistTrackRsp, error)
|
||||
SetScenarioPlaylist(ctx context.Context, in *SetScenarioPlaylistReq, opts ...grpc.CallOption) (*SetScenarioPlaylistRsp, error)
|
||||
AddScenario(ctx context.Context, in *AddScenarioReq, opts ...grpc.CallOption) (*AddScenarioRsp, error)
|
||||
GetMyScenarios(ctx context.Context, in *GetMyScenariosReq, opts ...grpc.CallOption) (*GetMyScenariosRsp, error)
|
||||
GetScenariosCatalog(ctx context.Context, in *GetScenariosCatalogReq, opts ...grpc.CallOption) (*GetScenariosCatalogRsp, error)
|
||||
@@ -176,6 +193,9 @@ type EveningDetectiveServerClient interface {
|
||||
// Получить состояние экрана по его токену. Вызывается самим экраном.
|
||||
GetScreenState(ctx context.Context, in *GetScreenStateReq, opts ...grpc.CallOption) (*GetScreenStateRsp, error)
|
||||
GetGameScreens(ctx context.Context, in *GetGameScreensReq, opts ...grpc.CallOption) (*GetGameScreensRsp, error)
|
||||
GetGameMusic(ctx context.Context, in *GetGameMusicReq, opts ...grpc.CallOption) (*GetGameMusicRsp, error)
|
||||
SetGameMusic(ctx context.Context, in *SetGameMusicReq, opts ...grpc.CallOption) (*SetGameMusicRsp, error)
|
||||
AdvanceScreenMusic(ctx context.Context, in *AdvanceScreenMusicReq, opts ...grpc.CallOption) (*AdvanceScreenMusicRsp, error)
|
||||
// Привязать экран к игре. Требует авторизацию организатора, автора или администратора.
|
||||
BindScreen(ctx context.Context, in *BindScreenReq, opts ...grpc.CallOption) (*BindScreenRsp, error)
|
||||
// Отвязать экран от игры. Требует авторизацию организатора, автора или администратора.
|
||||
@@ -438,6 +458,76 @@ func (c *eveningDetectiveServerClient) DownloadFile(ctx context.Context, in *Dow
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) GetPlaylists(ctx context.Context, in *GetPlaylistsReq, opts ...grpc.CallOption) (*GetPlaylistsRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetPlaylistsRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_GetPlaylists_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) CreatePlaylist(ctx context.Context, in *CreatePlaylistReq, opts ...grpc.CallOption) (*CreatePlaylistRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CreatePlaylistRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_CreatePlaylist_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) UpdatePlaylist(ctx context.Context, in *UpdatePlaylistReq, opts ...grpc.CallOption) (*UpdatePlaylistRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdatePlaylistRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_UpdatePlaylist_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) DeletePlaylist(ctx context.Context, in *DeletePlaylistReq, opts ...grpc.CallOption) (*DeletePlaylistRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(DeletePlaylistRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_DeletePlaylist_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) UploadPlaylistTrack(ctx context.Context, in *UploadPlaylistTrackReq, opts ...grpc.CallOption) (*UploadPlaylistTrackRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UploadPlaylistTrackRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_UploadPlaylistTrack_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) DeletePlaylistTrack(ctx context.Context, in *DeletePlaylistTrackReq, opts ...grpc.CallOption) (*DeletePlaylistTrackRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(DeletePlaylistTrackRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_DeletePlaylistTrack_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) SetScenarioPlaylist(ctx context.Context, in *SetScenarioPlaylistReq, opts ...grpc.CallOption) (*SetScenarioPlaylistRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SetScenarioPlaylistRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_SetScenarioPlaylist_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) AddScenario(ctx context.Context, in *AddScenarioReq, opts ...grpc.CallOption) (*AddScenarioRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AddScenarioRsp)
|
||||
@@ -728,6 +818,36 @@ func (c *eveningDetectiveServerClient) GetGameScreens(ctx context.Context, in *G
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) GetGameMusic(ctx context.Context, in *GetGameMusicReq, opts ...grpc.CallOption) (*GetGameMusicRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetGameMusicRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_GetGameMusic_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) SetGameMusic(ctx context.Context, in *SetGameMusicReq, opts ...grpc.CallOption) (*SetGameMusicRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SetGameMusicRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_SetGameMusic_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) AdvanceScreenMusic(ctx context.Context, in *AdvanceScreenMusicReq, opts ...grpc.CallOption) (*AdvanceScreenMusicRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AdvanceScreenMusicRsp)
|
||||
err := c.cc.Invoke(ctx, EveningDetectiveServer_AdvanceScreenMusic_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *eveningDetectiveServerClient) BindScreen(ctx context.Context, in *BindScreenReq, opts ...grpc.CallOption) (*BindScreenRsp, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(BindScreenRsp)
|
||||
@@ -1135,6 +1255,13 @@ type EveningDetectiveServerServer interface {
|
||||
GetPermissions(context.Context, *GetPermissionsReq) (*GetPermissionsRsp, error)
|
||||
UploadFile(context.Context, *UploadFileReq) (*UploadFileRsp, error)
|
||||
DownloadFile(context.Context, *DownloadFileReq) (*httpbody.HttpBody, error)
|
||||
GetPlaylists(context.Context, *GetPlaylistsReq) (*GetPlaylistsRsp, error)
|
||||
CreatePlaylist(context.Context, *CreatePlaylistReq) (*CreatePlaylistRsp, error)
|
||||
UpdatePlaylist(context.Context, *UpdatePlaylistReq) (*UpdatePlaylistRsp, error)
|
||||
DeletePlaylist(context.Context, *DeletePlaylistReq) (*DeletePlaylistRsp, error)
|
||||
UploadPlaylistTrack(context.Context, *UploadPlaylistTrackReq) (*UploadPlaylistTrackRsp, error)
|
||||
DeletePlaylistTrack(context.Context, *DeletePlaylistTrackReq) (*DeletePlaylistTrackRsp, error)
|
||||
SetScenarioPlaylist(context.Context, *SetScenarioPlaylistReq) (*SetScenarioPlaylistRsp, error)
|
||||
AddScenario(context.Context, *AddScenarioReq) (*AddScenarioRsp, error)
|
||||
GetMyScenarios(context.Context, *GetMyScenariosReq) (*GetMyScenariosRsp, error)
|
||||
GetScenariosCatalog(context.Context, *GetScenariosCatalogReq) (*GetScenariosCatalogRsp, error)
|
||||
@@ -1168,6 +1295,9 @@ type EveningDetectiveServerServer interface {
|
||||
// Получить состояние экрана по его токену. Вызывается самим экраном.
|
||||
GetScreenState(context.Context, *GetScreenStateReq) (*GetScreenStateRsp, error)
|
||||
GetGameScreens(context.Context, *GetGameScreensReq) (*GetGameScreensRsp, error)
|
||||
GetGameMusic(context.Context, *GetGameMusicReq) (*GetGameMusicRsp, error)
|
||||
SetGameMusic(context.Context, *SetGameMusicReq) (*SetGameMusicRsp, error)
|
||||
AdvanceScreenMusic(context.Context, *AdvanceScreenMusicReq) (*AdvanceScreenMusicRsp, error)
|
||||
// Привязать экран к игре. Требует авторизацию организатора, автора или администратора.
|
||||
BindScreen(context.Context, *BindScreenReq) (*BindScreenRsp, error)
|
||||
// Отвязать экран от игры. Требует авторизацию организатора, автора или администратора.
|
||||
@@ -1283,6 +1413,27 @@ func (UnimplementedEveningDetectiveServerServer) UploadFile(context.Context, *Up
|
||||
func (UnimplementedEveningDetectiveServerServer) DownloadFile(context.Context, *DownloadFileReq) (*httpbody.HttpBody, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DownloadFile not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) GetPlaylists(context.Context, *GetPlaylistsReq) (*GetPlaylistsRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetPlaylists not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) CreatePlaylist(context.Context, *CreatePlaylistReq) (*CreatePlaylistRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CreatePlaylist not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) UpdatePlaylist(context.Context, *UpdatePlaylistReq) (*UpdatePlaylistRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdatePlaylist not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) DeletePlaylist(context.Context, *DeletePlaylistReq) (*DeletePlaylistRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeletePlaylist not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) UploadPlaylistTrack(context.Context, *UploadPlaylistTrackReq) (*UploadPlaylistTrackRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UploadPlaylistTrack not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) DeletePlaylistTrack(context.Context, *DeletePlaylistTrackReq) (*DeletePlaylistTrackRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeletePlaylistTrack not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) SetScenarioPlaylist(context.Context, *SetScenarioPlaylistReq) (*SetScenarioPlaylistRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SetScenarioPlaylist not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) AddScenario(context.Context, *AddScenarioReq) (*AddScenarioRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AddScenario not implemented")
|
||||
}
|
||||
@@ -1370,6 +1521,15 @@ func (UnimplementedEveningDetectiveServerServer) GetScreenState(context.Context,
|
||||
func (UnimplementedEveningDetectiveServerServer) GetGameScreens(context.Context, *GetGameScreensReq) (*GetGameScreensRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetGameScreens not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) GetGameMusic(context.Context, *GetGameMusicReq) (*GetGameMusicRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetGameMusic not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) SetGameMusic(context.Context, *SetGameMusicReq) (*SetGameMusicRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SetGameMusic not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) AdvanceScreenMusic(context.Context, *AdvanceScreenMusicReq) (*AdvanceScreenMusicRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AdvanceScreenMusic not implemented")
|
||||
}
|
||||
func (UnimplementedEveningDetectiveServerServer) BindScreen(context.Context, *BindScreenReq) (*BindScreenRsp, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method BindScreen not implemented")
|
||||
}
|
||||
@@ -1884,6 +2044,132 @@ func _EveningDetectiveServer_DownloadFile_Handler(srv interface{}, ctx context.C
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_GetPlaylists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetPlaylistsReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).GetPlaylists(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_GetPlaylists_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).GetPlaylists(ctx, req.(*GetPlaylistsReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_CreatePlaylist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreatePlaylistReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).CreatePlaylist(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_CreatePlaylist_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).CreatePlaylist(ctx, req.(*CreatePlaylistReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_UpdatePlaylist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdatePlaylistReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).UpdatePlaylist(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_UpdatePlaylist_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).UpdatePlaylist(ctx, req.(*UpdatePlaylistReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_DeletePlaylist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeletePlaylistReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).DeletePlaylist(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_DeletePlaylist_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).DeletePlaylist(ctx, req.(*DeletePlaylistReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_UploadPlaylistTrack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UploadPlaylistTrackReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).UploadPlaylistTrack(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_UploadPlaylistTrack_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).UploadPlaylistTrack(ctx, req.(*UploadPlaylistTrackReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_DeletePlaylistTrack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeletePlaylistTrackReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).DeletePlaylistTrack(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_DeletePlaylistTrack_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).DeletePlaylistTrack(ctx, req.(*DeletePlaylistTrackReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_SetScenarioPlaylist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SetScenarioPlaylistReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).SetScenarioPlaylist(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_SetScenarioPlaylist_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).SetScenarioPlaylist(ctx, req.(*SetScenarioPlaylistReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_AddScenario_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddScenarioReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -2406,6 +2692,60 @@ func _EveningDetectiveServer_GetGameScreens_Handler(srv interface{}, ctx context
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_GetGameMusic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetGameMusicReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).GetGameMusic(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_GetGameMusic_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).GetGameMusic(ctx, req.(*GetGameMusicReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_SetGameMusic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SetGameMusicReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).SetGameMusic(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_SetGameMusic_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).SetGameMusic(ctx, req.(*SetGameMusicReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_AdvanceScreenMusic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AdvanceScreenMusicReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(EveningDetectiveServerServer).AdvanceScreenMusic(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: EveningDetectiveServer_AdvanceScreenMusic_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(EveningDetectiveServerServer).AdvanceScreenMusic(ctx, req.(*AdvanceScreenMusicReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _EveningDetectiveServer_BindScreen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(BindScreenReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -3181,6 +3521,34 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "DownloadFile",
|
||||
Handler: _EveningDetectiveServer_DownloadFile_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetPlaylists",
|
||||
Handler: _EveningDetectiveServer_GetPlaylists_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreatePlaylist",
|
||||
Handler: _EveningDetectiveServer_CreatePlaylist_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdatePlaylist",
|
||||
Handler: _EveningDetectiveServer_UpdatePlaylist_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeletePlaylist",
|
||||
Handler: _EveningDetectiveServer_DeletePlaylist_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UploadPlaylistTrack",
|
||||
Handler: _EveningDetectiveServer_UploadPlaylistTrack_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeletePlaylistTrack",
|
||||
Handler: _EveningDetectiveServer_DeletePlaylistTrack_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetScenarioPlaylist",
|
||||
Handler: _EveningDetectiveServer_SetScenarioPlaylist_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddScenario",
|
||||
Handler: _EveningDetectiveServer_AddScenario_Handler,
|
||||
@@ -3297,6 +3665,18 @@ var EveningDetectiveServer_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "GetGameScreens",
|
||||
Handler: _EveningDetectiveServer_GetGameScreens_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetGameMusic",
|
||||
Handler: _EveningDetectiveServer_GetGameMusic_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetGameMusic",
|
||||
Handler: _EveningDetectiveServer_SetGameMusic_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AdvanceScreenMusic",
|
||||
Handler: _EveningDetectiveServer_AdvanceScreenMusic_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "BindScreen",
|
||||
Handler: _EveningDetectiveServer_BindScreen_Handler,
|
||||
|
||||
Reference in New Issue
Block a user