github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/swarmkit/api/health.proto (about) 1 syntax = "proto3"; 2 3 // See: https://github.com/grpc/grpc-go/blob/master/health/grpc_health_v1/health.proto 4 // 5 // We use the same health check service proto description defined in the gRPC documentation, 6 // including the authorization check. This requires our own implementation of the health 7 // package located in `manager/health`. 8 // 9 // For more infos, refer to: 10 // https://github.com/grpc/grpc/blob/master/doc/health-checking.md 11 12 package docker.swarmkit.v1; 13 14 import "gogoproto/gogo.proto"; 15 import "github.com/docker/swarmkit/protobuf/plugin/plugin.proto"; 16 17 service Health { 18 rpc Check(HealthCheckRequest) returns (HealthCheckResponse) { 19 option (docker.protobuf.plugin.tls_authorization) = { roles: "swarm-manager" }; 20 }; 21 } 22 23 message HealthCheckRequest { 24 string service = 1; 25 } 26 27 message HealthCheckResponse { 28 enum ServingStatus { 29 UNKNOWN = 0; 30 SERVING = 1; 31 NOT_SERVING = 2; 32 } 33 ServingStatus status = 1; 34 }