2021-03-28 19:17:08 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-03-28 19:28:01 +03:00
|
|
|
package micro.server.health;
|
2021-10-23 23:45:53 +03:00
|
|
|
option go_package = "go.unistack.org/micro/v3/server/health;health";
|
2021-03-28 19:17:08 +03:00
|
|
|
|
|
|
|
import "api/annotations.proto";
|
2021-10-23 23:45:53 +03:00
|
|
|
import "openapiv3/annotations.proto";
|
2021-03-28 19:17:08 +03:00
|
|
|
import "codec/frame.proto";
|
|
|
|
|
2023-02-21 13:18:03 +03:00
|
|
|
service HealthService {
|
2021-03-28 19:17:08 +03:00
|
|
|
rpc Live(micro.codec.Frame) returns (micro.codec.Frame) {
|
2021-10-23 23:45:53 +03:00
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
2021-03-28 19:17:08 +03:00
|
|
|
operation_id: "Live";
|
2021-08-16 23:56:50 +03:00
|
|
|
responses: {
|
2021-10-23 23:45:53 +03:00
|
|
|
default: {
|
|
|
|
reference: {
|
|
|
|
_ref: "micro.codec.Frame";
|
2021-08-16 23:56:50 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-03-28 19:17:08 +03:00
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/live"; };
|
|
|
|
};
|
|
|
|
rpc Ready(micro.codec.Frame) returns (micro.codec.Frame) {
|
2021-10-23 23:45:53 +03:00
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
2021-03-28 19:17:08 +03:00
|
|
|
operation_id: "Ready";
|
2021-08-16 23:56:50 +03:00
|
|
|
responses: {
|
2021-10-23 23:45:53 +03:00
|
|
|
default: {
|
|
|
|
reference: {
|
|
|
|
_ref: "micro.codec.Frame";
|
2021-08-16 23:56:50 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-03-28 19:17:08 +03:00
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/ready"; };
|
|
|
|
};
|
|
|
|
rpc Version(micro.codec.Frame) returns (micro.codec.Frame) {
|
2021-10-23 23:45:53 +03:00
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
2021-03-28 19:17:08 +03:00
|
|
|
operation_id: "Version";
|
2021-08-16 23:56:50 +03:00
|
|
|
responses: {
|
2021-10-23 23:45:53 +03:00
|
|
|
default: {
|
|
|
|
reference: {
|
|
|
|
_ref: "micro.codec.Frame";
|
2021-08-16 23:56:50 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-03-28 19:17:08 +03:00
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/version"; };
|
|
|
|
};
|
|
|
|
};
|