netmaker/logic/relay.go
2024-03-04 13:39:33 +07:00

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
}