Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { OverlayAddr net.IPNet Port int PrivKey wgtypes.Key PubKey wgtypes.Key KeepaliveInterval *time.Duration // contains filtered or unexported fields }
State holds the configured state of a Wesher Wireguard interface
func New ¶
func New(iface string, port int, ipnet *net.IPNet, name string, keepaliveInterval *time.Duration) (*State, *common.Node, error)
New creates a new Wesher Wireguard state The Wireguard keys are generated for every new interface The interface must later be setup using SetUpInterface
func (*State) DownInterface ¶
DownInterface shuts down the associated network interface
Click to show internal directories.
Click to hide internal directories.