Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key is used in maps and for equality tests. A key is based on endpoints.
type Server ¶
type Server struct {
Name string
ID string
Datacenter string
Segment string
Port int
SegmentAddrs map[string]string
SegmentPorts map[string]int
WanJoinPort int
Bootstrap bool
Expect int
Build version.Version
Version int
RaftVersion int
Addr net.Addr
Status serf.MemberStatus
// If true, use TLS when connecting to this server
UseTLS bool
}
Server is used to return details of a consul server
func IsConsulServer ¶
IsConsulServer returns true if a serf member is a consul server agent. Returns a bool and a pointer to the Server.
Click to show internal directories.
Click to hide internal directories.