From 5d2ff009bf83c938dfe044b7dffc5d6586c1a274 Mon Sep 17 00:00:00 2001 From: Abhishek Kondur Date: Wed, 1 Feb 2023 16:48:41 +0400 Subject: [PATCH] comments --- models/mqtt.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/mqtt.go b/models/mqtt.go index b343c939..062e9d28 100644 --- a/models/mqtt.go +++ b/models/mqtt.go @@ -31,16 +31,19 @@ type HostPeerUpdate struct { IngressInfo IngressInfo `json:"ingress_info" bson:"ext_peers" yaml:"ext_peers"` } +// IngressInfo - struct for ingress info type IngressInfo struct { ExtPeers map[string]ExtClientInfo `json:"ext_peers" yaml:"ext_peers"` } +// PeerExtInfo - struct for peer info for an ext. client type PeerExtInfo struct { PeerAddr net.IPNet `json:"peer_addr" yaml:"peer_addr"` PeerKey string `json:"peer_key" yaml:"peer_key"` Allow bool `json:"allow" yaml:"allow"` } +// ExtClientInfo - struct for ext. client and it's peers type ExtClientInfo struct { IngGwAddr net.IPNet `json:"ingress_gw_addr" yaml:"ingress_gw_addr"` Masquerade bool `json:"masquerade" yaml:"masquerade"`