Browse Source

comments for struct and host update actions

Abhishek Kondur 2 years ago
parent
commit
5f65f84b79
1 changed files with 7 additions and 2 deletions
  1. 7 2
      models/host.go

+ 7 - 2
models/host.go

@@ -65,14 +65,19 @@ func ParseBool(s string) bool {
 	return b
 }
 
+// HostMqAction - type for host update action
 type HostMqAction string
 
 const (
-	UpdateHost        = "UPDATE_HOST"
-	DeleteHost        = "DELETE_HOST"
+	// UpdateHost - constant for host update action
+	UpdateHost = "UPDATE_HOST"
+	// DeleteHost - constant for host delete action
+	DeleteHost = "DELETE_HOST"
+	// JoinHostToNetwork - constant for host network join action
 	JoinHostToNetwork = "JOIN_HOST_TO_NETWORK"
 )
 
+// HostUpdate - struct for host update
 type HostUpdate struct {
 	Action HostMqAction
 	Host   Host