smegmesh/pkg/ip/types.go

12 lines
163 B
Go
Raw Normal View History

2023-10-05 18:48:54 +02:00
package ip
import (
"net"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
)
type IPAllocator interface {
GetIP(key wgtypes.Key, meshId string) (net.IP, error)
}