2017-07-14 05:33:47 +00:00
|
|
|
package structs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
// These are used to manage the built-in "serfHealth" check that's attached
|
|
|
|
// to every node in the catalog.
|
|
|
|
const (
|
|
|
|
SerfCheckID types.CheckID = "serfHealth"
|
|
|
|
SerfCheckName = "Serf Health Status"
|
|
|
|
SerfCheckAliveOutput = "Agent alive and reachable"
|
|
|
|
SerfCheckFailedOutput = "Agent not live or unreachable"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2018-03-07 01:32:41 +00:00
|
|
|
// These are used to manage the "consul" service that's attached to every
|
|
|
|
// Consul server node in the catalog.
|
2017-07-14 05:33:47 +00:00
|
|
|
ConsulServiceID = "consul"
|
|
|
|
ConsulServiceName = "consul"
|
|
|
|
)
|
2019-12-10 02:26:41 +00:00
|
|
|
|
|
|
|
var (
|
2021-07-22 19:33:22 +00:00
|
|
|
ConsulCompoundServiceID = NewServiceID(ConsulServiceID, nil) // TODO(partitions): delete this in favor of IsConsulServiceID(ServiceID)
|
|
|
|
SerfCompoundCheckID = NewCheckID(SerfCheckID, nil) // TODO(partitions): delete this in favor of IsSerfCheckID(CheckID)
|
2019-12-10 02:26:41 +00:00
|
|
|
)
|