mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 09:32:32 +08:00
34 lines
703 B
Go
34 lines
703 B
Go
package logic
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/gravitl/netmaker/models"
|
|
)
|
|
|
|
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
|
|
}
|
|
|
|
var ValidateRelay = func(relay models.RelayRequest, update bool) error {
|
|
return nil
|
|
}
|