comments for struct and host update actions

This commit is contained in:
Abhishek Kondur 2023-01-17 12:54:05 +05:30
parent cf0b54c1eb
commit 5f65f84b79

View file

@ -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