Abhishek Kondur пре 2 година
родитељ
комит
451d18d230
2 измењених фајлова са 2 додато и 0 уклоњено
  1. 1 0
      models/mqtt.go
  2. 1 0
      mq/publishers.go

+ 1 - 0
models/mqtt.go

@@ -77,6 +77,7 @@ type PeerAction struct {
 	Peers  []wgtypes.PeerConfig `json:"peers"`
 }
 
+// FwUpdate - struct for firewall updates
 type FwUpdate struct {
 	IsIngressGw bool                  `json:"is_ingress_gw"`
 	IsEgressGw  bool                  `json:"is_egress_gw"`

+ 1 - 0
mq/publishers.go

@@ -585,6 +585,7 @@ func PublishHostDNSUpdate(old, new *models.Host, networks []string) error {
 	return nil
 }
 
+// PublishFwUpdate - publishes fw update to host
 func PublishFwUpdate(gwHost *models.Host, f *models.FwUpdate) error {
 	data, err := json.Marshal(f)
 	if err != nil {