From 818d00fda36f41891ca4330c80944b54c466b207 Mon Sep 17 00:00:00 2001 From: s-christoff Date: Mon, 22 Jun 2020 12:18:45 -0500 Subject: [PATCH] Add AgentMemberStatus const (#8110) * Add AgentMemberStatus const --- api/agent.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/api/agent.go b/api/agent.go index 717e6f5ae8..3c5d1975f6 100644 --- a/api/agent.go +++ b/api/agent.go @@ -123,10 +123,18 @@ type AgentServiceConnectProxyConfig struct { // AgentMember represents a cluster member known to the agent type AgentMember struct { - Name string - Addr string - Port uint16 - Tags map[string]string + Name string + Addr string + Port uint16 + Tags map[string]string + // Status of the Member which corresponds to github.com/hashicorp/serf/serf.MemberStatus + // Value is one of: + // + // AgentMemberNone = 0 + // AgentMemberAlive = 1 + // AgentMemberLeaving = 2 + // AgentMemberLeft = 3 + // AgentMemberFailed = 4 Status int ProtocolMin uint8 ProtocolMax uint8