mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-13 18:11:25 +01:00
12 lines
163 B
Go
12 lines
163 B
Go
|
package ip
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
|
||
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||
|
)
|
||
|
|
||
|
type IPAllocator interface {
|
||
|
GetIP(key wgtypes.Key, meshId string) (net.IP, error)
|
||
|
}
|