PrefixFromUUID returns a single IPv6 /128 prefix corresponding to the given UUID.
(uid uuid.UUID)
| 423 | |
| 424 | // PrefixFromUUID returns a single IPv6 /128 prefix corresponding to the given UUID. |
| 425 | func (p ServicePrefix) PrefixFromUUID(uid uuid.UUID) netip.Prefix { |
| 426 | return netip.PrefixFrom(p.AddrFromUUID(uid), 128) |
| 427 | } |
| 428 | |
| 429 | // RandomPrefix returns a single IPv6 /128 prefix within the service prefix. |
| 430 | func (p ServicePrefix) RandomPrefix() netip.Prefix { |