2021-09-28 15:23:22 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2022-01-24 10:13:37 +00:00
// versions:
2023-05-02 15:40:54 +00:00
// - protoc-gen-go-grpc v1.3.0
// - protoc v3.21.9
2022-01-24 10:13:37 +00:00
// source: pkg/services/control/service.proto
2021-09-28 15:23:22 +00:00
package control
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
2023-05-02 15:40:54 +00:00
const (
ControlService_HealthCheck_FullMethodName = "/control.ControlService/HealthCheck"
ControlService_SetNetmapStatus_FullMethodName = "/control.ControlService/SetNetmapStatus"
ControlService_DropObjects_FullMethodName = "/control.ControlService/DropObjects"
ControlService_ListShards_FullMethodName = "/control.ControlService/ListShards"
ControlService_SetShardMode_FullMethodName = "/control.ControlService/SetShardMode"
ControlService_SynchronizeTree_FullMethodName = "/control.ControlService/SynchronizeTree"
ControlService_EvacuateShard_FullMethodName = "/control.ControlService/EvacuateShard"
ControlService_StartShardEvacuation_FullMethodName = "/control.ControlService/StartShardEvacuation"
ControlService_GetShardEvacuationStatus_FullMethodName = "/control.ControlService/GetShardEvacuationStatus"
ControlService_StopShardEvacuation_FullMethodName = "/control.ControlService/StopShardEvacuation"
ControlService_FlushCache_FullMethodName = "/control.ControlService/FlushCache"
ControlService_Doctor_FullMethodName = "/control.ControlService/Doctor"
)
2021-09-28 15:23:22 +00:00
// ControlServiceClient is the client API for ControlService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ControlServiceClient interface {
// Performs health check of the storage node.
HealthCheck ( ctx context . Context , in * HealthCheckRequest , opts ... grpc . CallOption ) ( * HealthCheckResponse , error )
2023-02-03 16:58:09 +00:00
// Sets status of the storage node in FrostFS network map.
2021-09-28 15:23:22 +00:00
SetNetmapStatus ( ctx context . Context , in * SetNetmapStatusRequest , opts ... grpc . CallOption ) ( * SetNetmapStatusResponse , error )
// Mark objects to be removed from node's local object storage.
DropObjects ( ctx context . Context , in * DropObjectsRequest , opts ... grpc . CallOption ) ( * DropObjectsResponse , error )
2021-12-17 12:39:56 +00:00
// Returns list that contains information about all shards of a node.
ListShards ( ctx context . Context , in * ListShardsRequest , opts ... grpc . CallOption ) ( * ListShardsResponse , error )
2021-12-27 15:28:47 +00:00
// Sets mode of the shard.
SetShardMode ( ctx context . Context , in * SetShardModeRequest , opts ... grpc . CallOption ) ( * SetShardModeResponse , error )
2022-05-16 16:31:50 +00:00
// Synchronizes all log operations for the specified tree.
SynchronizeTree ( ctx context . Context , in * SynchronizeTreeRequest , opts ... grpc . CallOption ) ( * SynchronizeTreeResponse , error )
2022-09-13 10:28:08 +00:00
// EvacuateShard moves all data from one shard to the others.
EvacuateShard ( ctx context . Context , in * EvacuateShardRequest , opts ... grpc . CallOption ) ( * EvacuateShardResponse , error )
2023-05-02 15:40:54 +00:00
// StartShardEvacuation starts moving all data from one shard to the others.
StartShardEvacuation ( ctx context . Context , in * StartShardEvacuationRequest , opts ... grpc . CallOption ) ( * StartShardEvacuationResponse , error )
// GetShardEvacuationStatus returns evacuation status.
GetShardEvacuationStatus ( ctx context . Context , in * GetShardEvacuationStatusRequest , opts ... grpc . CallOption ) ( * GetShardEvacuationStatusResponse , error )
// StopShardEvacuation stops moving all data from one shard to the others.
StopShardEvacuation ( ctx context . Context , in * StopShardEvacuationRequest , opts ... grpc . CallOption ) ( * StopShardEvacuationResponse , error )
2022-09-21 10:51:51 +00:00
// FlushCache moves all data from one shard to the others.
FlushCache ( ctx context . Context , in * FlushCacheRequest , opts ... grpc . CallOption ) ( * FlushCacheResponse , error )
2023-04-07 11:21:05 +00:00
// Doctor performs storage restructuring operations on engine.
Doctor ( ctx context . Context , in * DoctorRequest , opts ... grpc . CallOption ) ( * DoctorResponse , error )
2021-09-28 15:23:22 +00:00
}
type controlServiceClient struct {
cc grpc . ClientConnInterface
}
func NewControlServiceClient ( cc grpc . ClientConnInterface ) ControlServiceClient {
return & controlServiceClient { cc }
}
func ( c * controlServiceClient ) HealthCheck ( ctx context . Context , in * HealthCheckRequest , opts ... grpc . CallOption ) ( * HealthCheckResponse , error ) {
out := new ( HealthCheckResponse )
2023-05-02 15:40:54 +00:00
err := c . cc . Invoke ( ctx , ControlService_HealthCheck_FullMethodName , in , out , opts ... )
2021-09-28 15:23:22 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * controlServiceClient ) SetNetmapStatus ( ctx context . Context , in * SetNetmapStatusRequest , opts ... grpc . CallOption ) ( * SetNetmapStatusResponse , error ) {
out := new ( SetNetmapStatusResponse )
2023-05-02 15:40:54 +00:00
err := c . cc . Invoke ( ctx , ControlService_SetNetmapStatus_FullMethodName , in , out , opts ... )
2021-09-28 15:23:22 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * controlServiceClient ) DropObjects ( ctx context . Context , in * DropObjectsRequest , opts ... grpc . CallOption ) ( * DropObjectsResponse , error ) {
out := new ( DropObjectsResponse )
2023-05-02 15:40:54 +00:00
err := c . cc . Invoke ( ctx , ControlService_DropObjects_FullMethodName , in , out , opts ... )
2021-09-28 15:23:22 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2021-12-17 12:39:56 +00:00
func ( c * controlServiceClient ) ListShards ( ctx context . Context , in * ListShardsRequest , opts ... grpc . CallOption ) ( * ListShardsResponse , error ) {
out := new ( ListShardsResponse )
2023-05-02 15:40:54 +00:00
err := c . cc . Invoke ( ctx , ControlService_ListShards_FullMethodName , in , out , opts ... )
2021-12-17 12:39:56 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2021-12-27 15:28:47 +00:00
func ( c * controlServiceClient ) SetShardMode ( ctx context . Context , in * SetShardModeRequest , opts ... grpc . CallOption ) ( * SetShardModeResponse , error ) {
out := new ( SetShardModeResponse )
2023-05-02 15:40:54 +00:00
err := c . cc . Invoke ( ctx , ControlService_SetShardMode_FullMethodName , in , out , opts ... )
2021-12-27 15:28:47 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2022-05-16 16:31:50 +00:00
func ( c * controlServiceClient ) SynchronizeTree ( ctx context . Context , in * SynchronizeTreeRequest , opts ... grpc . CallOption ) ( * SynchronizeTreeResponse , error ) {
out := new ( SynchronizeTreeResponse )
2023-05-02 15:40:54 +00:00
err := c . cc . Invoke ( ctx , ControlService_SynchronizeTree_FullMethodName , in , out , opts ... )
2022-05-16 16:31:50 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2022-09-13 10:28:08 +00:00
func ( c * controlServiceClient ) EvacuateShard ( ctx context . Context , in * EvacuateShardRequest , opts ... grpc . CallOption ) ( * EvacuateShardResponse , error ) {
out := new ( EvacuateShardResponse )
2023-05-02 15:40:54 +00:00
err := c . cc . Invoke ( ctx , ControlService_EvacuateShard_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * controlServiceClient ) StartShardEvacuation ( ctx context . Context , in * StartShardEvacuationRequest , opts ... grpc . CallOption ) ( * StartShardEvacuationResponse , error ) {
out := new ( StartShardEvacuationResponse )
err := c . cc . Invoke ( ctx , ControlService_StartShardEvacuation_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * controlServiceClient ) GetShardEvacuationStatus ( ctx context . Context , in * GetShardEvacuationStatusRequest , opts ... grpc . CallOption ) ( * GetShardEvacuationStatusResponse , error ) {
out := new ( GetShardEvacuationStatusResponse )
err := c . cc . Invoke ( ctx , ControlService_GetShardEvacuationStatus_FullMethodName , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * controlServiceClient ) StopShardEvacuation ( ctx context . Context , in * StopShardEvacuationRequest , opts ... grpc . CallOption ) ( * StopShardEvacuationResponse , error ) {
out := new ( StopShardEvacuationResponse )
err := c . cc . Invoke ( ctx , ControlService_StopShardEvacuation_FullMethodName , in , out , opts ... )
2022-09-13 10:28:08 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2022-09-21 10:51:51 +00:00
func ( c * controlServiceClient ) FlushCache ( ctx context . Context , in * FlushCacheRequest , opts ... grpc . CallOption ) ( * FlushCacheResponse , error ) {
out := new ( FlushCacheResponse )
2023-05-02 15:40:54 +00:00
err := c . cc . Invoke ( ctx , ControlService_FlushCache_FullMethodName , in , out , opts ... )
2023-04-07 11:21:05 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * controlServiceClient ) Doctor ( ctx context . Context , in * DoctorRequest , opts ... grpc . CallOption ) ( * DoctorResponse , error ) {
out := new ( DoctorResponse )
2023-05-02 15:40:54 +00:00
err := c . cc . Invoke ( ctx , ControlService_Doctor_FullMethodName , in , out , opts ... )
2022-09-21 10:51:51 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2021-09-28 15:23:22 +00:00
// ControlServiceServer is the server API for ControlService service.
// All implementations should embed UnimplementedControlServiceServer
// for forward compatibility
type ControlServiceServer interface {
// Performs health check of the storage node.
HealthCheck ( context . Context , * HealthCheckRequest ) ( * HealthCheckResponse , error )
2023-02-03 16:58:09 +00:00
// Sets status of the storage node in FrostFS network map.
2021-09-28 15:23:22 +00:00
SetNetmapStatus ( context . Context , * SetNetmapStatusRequest ) ( * SetNetmapStatusResponse , error )
// Mark objects to be removed from node's local object storage.
DropObjects ( context . Context , * DropObjectsRequest ) ( * DropObjectsResponse , error )
2021-12-17 12:39:56 +00:00
// Returns list that contains information about all shards of a node.
ListShards ( context . Context , * ListShardsRequest ) ( * ListShardsResponse , error )
2021-12-27 15:28:47 +00:00
// Sets mode of the shard.
SetShardMode ( context . Context , * SetShardModeRequest ) ( * SetShardModeResponse , error )
2022-05-16 16:31:50 +00:00
// Synchronizes all log operations for the specified tree.
SynchronizeTree ( context . Context , * SynchronizeTreeRequest ) ( * SynchronizeTreeResponse , error )
2022-09-13 10:28:08 +00:00
// EvacuateShard moves all data from one shard to the others.
EvacuateShard ( context . Context , * EvacuateShardRequest ) ( * EvacuateShardResponse , error )
2023-05-02 15:40:54 +00:00
// StartShardEvacuation starts moving all data from one shard to the others.
StartShardEvacuation ( context . Context , * StartShardEvacuationRequest ) ( * StartShardEvacuationResponse , error )
// GetShardEvacuationStatus returns evacuation status.
GetShardEvacuationStatus ( context . Context , * GetShardEvacuationStatusRequest ) ( * GetShardEvacuationStatusResponse , error )
// StopShardEvacuation stops moving all data from one shard to the others.
StopShardEvacuation ( context . Context , * StopShardEvacuationRequest ) ( * StopShardEvacuationResponse , error )
2022-09-21 10:51:51 +00:00
// FlushCache moves all data from one shard to the others.
FlushCache ( context . Context , * FlushCacheRequest ) ( * FlushCacheResponse , error )
2023-04-07 11:21:05 +00:00
// Doctor performs storage restructuring operations on engine.
Doctor ( context . Context , * DoctorRequest ) ( * DoctorResponse , error )
2021-09-28 15:23:22 +00:00
}
// UnimplementedControlServiceServer should be embedded to have forward compatible implementations.
type UnimplementedControlServiceServer struct {
}
func ( UnimplementedControlServiceServer ) HealthCheck ( context . Context , * HealthCheckRequest ) ( * HealthCheckResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method HealthCheck not implemented" )
}
func ( UnimplementedControlServiceServer ) SetNetmapStatus ( context . Context , * SetNetmapStatusRequest ) ( * SetNetmapStatusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SetNetmapStatus not implemented" )
}
func ( UnimplementedControlServiceServer ) DropObjects ( context . Context , * DropObjectsRequest ) ( * DropObjectsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method DropObjects not implemented" )
}
2021-12-17 12:39:56 +00:00
func ( UnimplementedControlServiceServer ) ListShards ( context . Context , * ListShardsRequest ) ( * ListShardsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListShards not implemented" )
}
2021-12-27 15:28:47 +00:00
func ( UnimplementedControlServiceServer ) SetShardMode ( context . Context , * SetShardModeRequest ) ( * SetShardModeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SetShardMode not implemented" )
}
2022-05-16 16:31:50 +00:00
func ( UnimplementedControlServiceServer ) SynchronizeTree ( context . Context , * SynchronizeTreeRequest ) ( * SynchronizeTreeResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method SynchronizeTree not implemented" )
}
2022-09-13 10:28:08 +00:00
func ( UnimplementedControlServiceServer ) EvacuateShard ( context . Context , * EvacuateShardRequest ) ( * EvacuateShardResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method EvacuateShard not implemented" )
}
2023-05-02 15:40:54 +00:00
func ( UnimplementedControlServiceServer ) StartShardEvacuation ( context . Context , * StartShardEvacuationRequest ) ( * StartShardEvacuationResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method StartShardEvacuation not implemented" )
}
func ( UnimplementedControlServiceServer ) GetShardEvacuationStatus ( context . Context , * GetShardEvacuationStatusRequest ) ( * GetShardEvacuationStatusResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetShardEvacuationStatus not implemented" )
}
func ( UnimplementedControlServiceServer ) StopShardEvacuation ( context . Context , * StopShardEvacuationRequest ) ( * StopShardEvacuationResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method StopShardEvacuation not implemented" )
}
2022-09-21 10:51:51 +00:00
func ( UnimplementedControlServiceServer ) FlushCache ( context . Context , * FlushCacheRequest ) ( * FlushCacheResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method FlushCache not implemented" )
}
2023-04-07 11:21:05 +00:00
func ( UnimplementedControlServiceServer ) Doctor ( context . Context , * DoctorRequest ) ( * DoctorResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Doctor not implemented" )
}
2021-09-28 15:23:22 +00:00
// UnsafeControlServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ControlServiceServer will
// result in compilation errors.
type UnsafeControlServiceServer interface {
mustEmbedUnimplementedControlServiceServer ( )
}
func RegisterControlServiceServer ( s grpc . ServiceRegistrar , srv ControlServiceServer ) {
s . RegisterService ( & ControlService_ServiceDesc , srv )
}
func _ControlService_HealthCheck_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( HealthCheckRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . HealthCheck ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-05-02 15:40:54 +00:00
FullMethod : ControlService_HealthCheck_FullMethodName ,
2021-09-28 15:23:22 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . HealthCheck ( ctx , req . ( * HealthCheckRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ControlService_SetNetmapStatus_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SetNetmapStatusRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . SetNetmapStatus ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-05-02 15:40:54 +00:00
FullMethod : ControlService_SetNetmapStatus_FullMethodName ,
2021-09-28 15:23:22 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . SetNetmapStatus ( ctx , req . ( * SetNetmapStatusRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ControlService_DropObjects_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DropObjectsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . DropObjects ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-05-02 15:40:54 +00:00
FullMethod : ControlService_DropObjects_FullMethodName ,
2021-09-28 15:23:22 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . DropObjects ( ctx , req . ( * DropObjectsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-12-17 12:39:56 +00:00
func _ControlService_ListShards_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListShardsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . ListShards ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-05-02 15:40:54 +00:00
FullMethod : ControlService_ListShards_FullMethodName ,
2021-12-17 12:39:56 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . ListShards ( ctx , req . ( * ListShardsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-12-27 15:28:47 +00:00
func _ControlService_SetShardMode_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SetShardModeRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . SetShardMode ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-05-02 15:40:54 +00:00
FullMethod : ControlService_SetShardMode_FullMethodName ,
2021-12-27 15:28:47 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . SetShardMode ( ctx , req . ( * SetShardModeRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-05-16 16:31:50 +00:00
func _ControlService_SynchronizeTree_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( SynchronizeTreeRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . SynchronizeTree ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-05-02 15:40:54 +00:00
FullMethod : ControlService_SynchronizeTree_FullMethodName ,
2022-05-16 16:31:50 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . SynchronizeTree ( ctx , req . ( * SynchronizeTreeRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-09-13 10:28:08 +00:00
func _ControlService_EvacuateShard_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( EvacuateShardRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . EvacuateShard ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-05-02 15:40:54 +00:00
FullMethod : ControlService_EvacuateShard_FullMethodName ,
2022-09-13 10:28:08 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . EvacuateShard ( ctx , req . ( * EvacuateShardRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-05-02 15:40:54 +00:00
func _ControlService_StartShardEvacuation_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( StartShardEvacuationRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . StartShardEvacuation ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : ControlService_StartShardEvacuation_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . StartShardEvacuation ( ctx , req . ( * StartShardEvacuationRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ControlService_GetShardEvacuationStatus_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetShardEvacuationStatusRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . GetShardEvacuationStatus ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : ControlService_GetShardEvacuationStatus_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . GetShardEvacuationStatus ( ctx , req . ( * GetShardEvacuationStatusRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _ControlService_StopShardEvacuation_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( StopShardEvacuationRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . StopShardEvacuation ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : ControlService_StopShardEvacuation_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . StopShardEvacuation ( ctx , req . ( * StopShardEvacuationRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-09-21 10:51:51 +00:00
func _ControlService_FlushCache_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( FlushCacheRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . FlushCache ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-05-02 15:40:54 +00:00
FullMethod : ControlService_FlushCache_FullMethodName ,
2022-09-21 10:51:51 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . FlushCache ( ctx , req . ( * FlushCacheRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-04-07 11:21:05 +00:00
func _ControlService_Doctor_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( DoctorRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( ControlServiceServer ) . Doctor ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-05-02 15:40:54 +00:00
FullMethod : ControlService_Doctor_FullMethodName ,
2023-04-07 11:21:05 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( ControlServiceServer ) . Doctor ( ctx , req . ( * DoctorRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2021-09-28 15:23:22 +00:00
// ControlService_ServiceDesc is the grpc.ServiceDesc for ControlService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ControlService_ServiceDesc = grpc . ServiceDesc {
ServiceName : "control.ControlService" ,
HandlerType : ( * ControlServiceServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "HealthCheck" ,
Handler : _ControlService_HealthCheck_Handler ,
} ,
{
MethodName : "SetNetmapStatus" ,
Handler : _ControlService_SetNetmapStatus_Handler ,
} ,
{
MethodName : "DropObjects" ,
Handler : _ControlService_DropObjects_Handler ,
} ,
2021-12-17 12:39:56 +00:00
{
MethodName : "ListShards" ,
Handler : _ControlService_ListShards_Handler ,
} ,
2021-12-27 15:28:47 +00:00
{
MethodName : "SetShardMode" ,
Handler : _ControlService_SetShardMode_Handler ,
} ,
2022-05-16 16:31:50 +00:00
{
MethodName : "SynchronizeTree" ,
Handler : _ControlService_SynchronizeTree_Handler ,
} ,
2022-09-13 10:28:08 +00:00
{
MethodName : "EvacuateShard" ,
Handler : _ControlService_EvacuateShard_Handler ,
} ,
2023-05-02 15:40:54 +00:00
{
MethodName : "StartShardEvacuation" ,
Handler : _ControlService_StartShardEvacuation_Handler ,
} ,
{
MethodName : "GetShardEvacuationStatus" ,
Handler : _ControlService_GetShardEvacuationStatus_Handler ,
} ,
{
MethodName : "StopShardEvacuation" ,
Handler : _ControlService_StopShardEvacuation_Handler ,
} ,
2022-09-21 10:51:51 +00:00
{
MethodName : "FlushCache" ,
Handler : _ControlService_FlushCache_Handler ,
} ,
2023-04-07 11:21:05 +00:00
{
MethodName : "Doctor" ,
Handler : _ControlService_Doctor_Handler ,
} ,
2021-09-28 15:23:22 +00:00
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "pkg/services/control/service.proto" ,
}