Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultInterval = time.Minute
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func NewRoute ¶
func NewRoute( rt *route.Route, routeRefCounter *refcounter.RouteRefCounter, allowedIPsRefCounter *refcounter.AllowedIPsRefCounter, interval time.Duration, statusRecorder *peer.Status, wgInterface iface.IWGIface, resolverAddr string, ) *Route
func (*Route) AddAllowedIPs ¶
func (*Route) RemoveAllowedIPs ¶
func (*Route) RemoveRoute ¶
RemoveRoute will stop the dynamic resolver and remove all dynamic routes. It doesn't touch allowed IPs, these should be removed separately and before calling this method.
Click to show internal directories.
Click to hide internal directories.