You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
410 B
23 lines
410 B
package model |
|
|
|
// NodeStatus Status of instance |
|
type NodeStatus int |
|
|
|
const ( |
|
// AppID is discvoery id |
|
AppID = "infra.discovery" |
|
) |
|
|
|
const ( |
|
// NodeStatusUP Ready to receive register |
|
NodeStatusUP NodeStatus = iota |
|
// NodeStatusLost lost with each other |
|
NodeStatusLost |
|
) |
|
|
|
// Node node |
|
type Node struct { |
|
Addr string `json:"addr"` |
|
Status NodeStatus `json:"status"` |
|
Zone string `json:"zone"` |
|
}
|
|
|