Browse Source

comments for exported

Abhishek Kondur 2 years ago
parent
commit
7be2771ea8
2 changed files with 2 additions and 0 deletions
  1. 1 0
      models/mqtt.go
  2. 1 0
      models/node.go

+ 1 - 0
models/mqtt.go

@@ -36,6 +36,7 @@ type IngressInfo struct {
 	ExtPeers map[string]ExtClientInfo `json:"ext_peers" yaml:"ext_peers"`
 }
 
+// EgressInfo - struct for egress info
 type EgressInfo struct {
 	EgressID     string                   `json:"egress_id" yaml:"egress_id"`
 	Network      net.IPNet                `json:"network" yaml:"network"`

+ 1 - 0
models/node.go

@@ -191,6 +191,7 @@ func (node *Node) PrimaryAddress() string {
 	return node.Address6.IP.String()
 }
 
+// Node.PrimaryNetworkRange - returns node's parent network, returns ipv4 address if present, else return ipv6
 func (node *Node) PrimaryNetworkRange() net.IPNet {
 	if node.NetworkRange.IP != nil {
 		return node.NetworkRange