mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 01:14:23 +00:00
e5842cd81a
* Make proto-public license MPL * Add proto-public dir to exclusion list in .copywrite.hcl
30 lines
661 B
Protocol Buffer
30 lines
661 B
Protocol Buffer
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
syntax = "proto3";
|
|
|
|
package hashicorp.consul.mesh.v1alpha1.pbproxystate;
|
|
|
|
import "google/protobuf/wrappers.proto";
|
|
import "pbmesh/v1alpha1/pbproxystate/address.proto";
|
|
|
|
message Endpoints {
|
|
repeated Endpoint endpoints = 1;
|
|
}
|
|
|
|
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;
|
|
}
|