2021-01-13 12:47:54 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-01-13 13:46:39 +00:00
|
|
|
package control;
|
2021-01-13 12:47:54 +00:00
|
|
|
|
|
|
|
import "types.proto";
|
|
|
|
|
2021-01-13 13:46:39 +00:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-node/pkg/services/control";
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2021-01-13 13:46:39 +00:00
|
|
|
// `ControlService` provides an interface for internal work with the storage node.
|
|
|
|
service ControlService {
|
2021-01-13 12:47:54 +00:00
|
|
|
// Performs health check of the storage node.
|
|
|
|
rpc HealthCheck (HealthCheckRequest) returns (HealthCheckResponse);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Health check request.
|
|
|
|
message HealthCheckRequest {
|
|
|
|
// Health check request body.
|
|
|
|
message Body {
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body of health check request message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Health check request.
|
|
|
|
message HealthCheckResponse {
|
|
|
|
// Health check response body
|
|
|
|
message Body {
|
|
|
|
// Health status of storage node.
|
|
|
|
HealthStatus status = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body of health check response message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
|
|
|
}
|