mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-13 18:11:25 +01:00
02dfd73e08
- Separated synchronisation calls into independent processes - Commented code for submission
13 lines
249 B
Go
13 lines
249 B
Go
package ip
|
|
|
|
import (
|
|
"net"
|
|
|
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
|
)
|
|
|
|
// IPAllocator: abstracts the process of creating an IP address
|
|
type IPAllocator interface {
|
|
GetIP(key wgtypes.Key, meshId string, collisionCount uint8) (net.IP, error)
|
|
}
|