smegmesh/pkg/ip/types.go

12 lines
185 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 {
2024-01-02 01:09:31 +01:00
GetIP(key wgtypes.Key, meshId string, collisionCount uint8) (net.IP, error)
2023-10-05 18:48:54 +02:00
}