mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
001442e75e
* 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
29 lines
614 B
Go
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
|
|
}
|