forked from extern/smegmesh
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)
|
|
}
|