Browse Source

host update model

Abhishek Kondur 2 years ago
parent
commit
853ddac457
1 changed files with 14 additions and 0 deletions
  1. 14 0
      models/host.go

+ 14 - 0
models/host.go

@@ -64,3 +64,17 @@ func ParseBool(s string) bool {
 	}
 	return b
 }
+
+type HostMqAction string
+
+const (
+	UpdateHost        = "UPDATE_HOST"
+	DeleteHost        = "DELETE_HOST"
+	JoinHostToNetwork = "JOIN_HOST_TO_NETWORK"
+)
+
+type HostUpdate struct {
+	Action HostMqAction
+	Host   Host
+	Node   Node
+}