netmaker/logic/relay.go
Gabriel de Souza Seibel 001442e75e
[NET-493] - Additional data fields to send to account management (#2583)
* Send relays and internet gws count to amb

* Unify usage funcs in logic pkg

* Fix ee build

* Revert "Unify usage funcs in logic pkg"

This reverts commit 28afc91f7e.

* Add more resource metrics on getUsage handler

* Use pro module's function to get server usage on lic val

* Move GetRelays to pro package
2023-10-06 10:22:58 +04:00

29 lines
614 B
Go

package logic
import (
"github.com/gravitl/netmaker/models"
"net"
)
var GetRelays = func() ([]models.Node, error) {
return []models.Node{}, nil
}
var RelayedAllowedIPs = func(peer, node *models.Node) []net.IPNet {
return []net.IPNet{}
}
var GetAllowedIpsForRelayed = func(relayed, relay *models.Node) []net.IPNet {
return []net.IPNet{}
}
var UpdateRelayed = func(currentNode, newNode *models.Node) {
}
var SetRelayedNodes = func(setRelayed bool, relay string, relayed []string) []models.Node {
return []models.Node{}
}
var RelayUpdates = func(currentNode, newNode *models.Node) bool {
return false
}