open-nomad/nomad/structs/structs.go

17 lines
447 B
Go
Raw Normal View History

2015-06-01 15:49:10 +00:00
package structs
type MessageType uint8
const (
RegisterRequestType MessageType = iota
)
const (
// IgnoreUnknownTypeFlag is set along with a MessageType
// to indicate that the message type can be safely ignored
// if it is not recognized. This is for future proofing, so
// that new commands can be added in a way that won't cause
// old servers to crash when the FSM attempts to process them.
IgnoreUnknownTypeFlag MessageType = 128
)