mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
comments for struct and host update actions
This commit is contained in:
parent
cf0b54c1eb
commit
5f65f84b79
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue