Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
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"`
}