27 lines
895 B
Go
27 lines
895 B
Go
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 (
|
|
// These are used to manage the "consul" service that's attached to every
|
|
// Consul server node in the catalog.
|
|
ConsulServiceID = "consul"
|
|
ConsulServiceName = "consul"
|
|
)
|
|
|
|
var (
|
|
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)
|
|
)
|