Add AgentMemberStatus const (#8110)

* Add AgentMemberStatus const
pull/8166/head
s-christoff 2020-06-22 12:18:45 -05:00 committed by GitHub
parent 6dd0abdc9f
commit 818d00fda3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -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