2023-07-21 16:21:39 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-21 17:31:54 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2023-07-21 16:21:39 +00:00
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-08-01 17:35:17 +00:00
|
|
|
package hashicorp.consul.mesh.v1alpha1.pbproxystate;
|
2023-07-21 16:21:39 +00:00
|
|
|
|
|
|
|
import "google/protobuf/wrappers.proto";
|
2023-08-01 17:35:17 +00:00
|
|
|
import "pbmesh/v1alpha1/pbproxystate/address.proto";
|
2023-07-21 16:21:39 +00:00
|
|
|
|
|
|
|
message Endpoints {
|
2023-08-01 17:35:17 +00:00
|
|
|
repeated Endpoint endpoints = 1;
|
2023-07-21 16:21:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Endpoint {
|
|
|
|
oneof address {
|
|
|
|
HostPortAddress host_port = 1;
|
|
|
|
UnixSocketAddress unix_socket = 2;
|
|
|
|
}
|
|
|
|
HealthStatus health_status = 3;
|
|
|
|
google.protobuf.UInt32Value load_balancing_weight = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum HealthStatus {
|
|
|
|
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
|
|
|
|
HEALTH_STATUS_UNKNOWN = 0;
|
|
|
|
HEALTH_STATUS_HEALTHY = 1;
|
|
|
|
HEALTH_STATUS_UNHEALTHY = 2;
|
|
|
|
}
|