2023-02-26 14:51:34 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package micro.server.http.v3.handler.health;
|
2024-04-10 00:15:54 +03:00
|
|
|
option go_package = "go.unistack.org/micro-server-http/v3/handler/health;health_handler";
|
2023-02-26 14:51:34 +03:00
|
|
|
|
|
|
|
import "api/annotations.proto";
|
|
|
|
import "openapiv3/annotations.proto";
|
|
|
|
import "codec/frame.proto";
|
|
|
|
|
|
|
|
service HealthService {
|
2024-12-02 15:47:30 +03:00
|
|
|
rpc Healthy(micro.codec.Frame) returns (micro.codec.Frame) {
|
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
|
|
|
operation_id: "Healthy";
|
|
|
|
responses: {
|
|
|
|
default: {
|
|
|
|
reference: {
|
|
|
|
_ref: "micro.codec.Frame";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
option (micro.api.http) = {
|
|
|
|
get: "/health";
|
|
|
|
additional_bindings: { get: "/healthz"; }
|
|
|
|
};
|
|
|
|
};
|
2023-02-26 14:51:34 +03:00
|
|
|
rpc Live(micro.codec.Frame) returns (micro.codec.Frame) {
|
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
|
|
|
operation_id: "Live";
|
|
|
|
responses: {
|
|
|
|
default: {
|
|
|
|
reference: {
|
|
|
|
_ref: "micro.codec.Frame";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-12-02 15:47:30 +03:00
|
|
|
option (micro.api.http) = {
|
|
|
|
get: "/live";
|
|
|
|
additional_bindings: { get: "/livez"; }
|
|
|
|
};
|
2023-02-26 14:51:34 +03:00
|
|
|
};
|
|
|
|
rpc Ready(micro.codec.Frame) returns (micro.codec.Frame) {
|
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
|
|
|
operation_id: "Ready";
|
|
|
|
responses: {
|
|
|
|
default: {
|
|
|
|
reference: {
|
|
|
|
_ref: "micro.codec.Frame";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-12-02 15:47:30 +03:00
|
|
|
option (micro.api.http) = { get: "/ready";
|
|
|
|
additional_bindings: { get: "/readyz"; }
|
|
|
|
};
|
2023-02-26 14:51:34 +03:00
|
|
|
};
|
|
|
|
rpc Version(micro.codec.Frame) returns (micro.codec.Frame) {
|
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
|
|
|
operation_id: "Version";
|
|
|
|
responses: {
|
|
|
|
default: {
|
|
|
|
reference: {
|
|
|
|
_ref: "micro.codec.Frame";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/version"; };
|
|
|
|
};
|
|
|
|
};
|