2021-03-28 19:17:08 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-03-28 19:28:01 +03:00
|
|
|
package micro.server.health;
|
|
|
|
option go_package = "github.com/unistack-org/micro/v3/server/health;health";
|
2021-03-28 19:17:08 +03:00
|
|
|
|
|
|
|
import "api/annotations.proto";
|
|
|
|
import "openapiv2/annotations.proto";
|
|
|
|
import "codec/frame.proto";
|
|
|
|
|
|
|
|
service Health {
|
|
|
|
rpc Live(micro.codec.Frame) returns (micro.codec.Frame) {
|
|
|
|
option (micro.openapiv2.openapiv2_operation) = {
|
|
|
|
operation_id: "Live";
|
2021-08-16 23:56:50 +03:00
|
|
|
responses: {
|
|
|
|
response_code: {
|
|
|
|
name: "default";
|
2021-03-28 19:17:08 +03:00
|
|
|
value: {
|
2021-08-16 23:56:50 +03:00
|
|
|
json_reference: {
|
|
|
|
description: "Error response";
|
|
|
|
_ref: "micro.codec.Frame";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-03-28 19:17:08 +03:00
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/live"; };
|
|
|
|
};
|
|
|
|
rpc Ready(micro.codec.Frame) returns (micro.codec.Frame) {
|
|
|
|
option (micro.openapiv2.openapiv2_operation) = {
|
|
|
|
operation_id: "Ready";
|
2021-08-16 23:56:50 +03:00
|
|
|
responses: {
|
|
|
|
response_code: {
|
|
|
|
name: "default";
|
2021-03-28 19:17:08 +03:00
|
|
|
value: {
|
2021-08-16 23:56:50 +03:00
|
|
|
json_reference: {
|
|
|
|
description: "Error response";
|
|
|
|
_ref: "micro.codec.Frame";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-03-28 19:17:08 +03:00
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/ready"; };
|
|
|
|
};
|
|
|
|
rpc Version(micro.codec.Frame) returns (micro.codec.Frame) {
|
|
|
|
option (micro.openapiv2.openapiv2_operation) = {
|
|
|
|
operation_id: "Version";
|
2021-08-16 23:56:50 +03:00
|
|
|
responses: {
|
|
|
|
response_code: {
|
|
|
|
name: "default";
|
2021-03-28 19:17:08 +03:00
|
|
|
value: {
|
2021-08-16 23:56:50 +03:00
|
|
|
json_reference: {
|
|
|
|
description: "Error response";
|
|
|
|
_ref: "micro.codec.Frame";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-03-28 19:17:08 +03:00
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/version"; };
|
|
|
|
};
|
|
|
|
};
|