AddrFromUUID returns an IPv6 address corresponding to the given UUID in the service prefix.
(uid uuid.UUID)
| 418 | |
| 419 | // AddrFromUUID returns an IPv6 address corresponding to the given UUID in the service prefix. |
| 420 | func (p ServicePrefix) AddrFromUUID(uid uuid.UUID) netip.Addr { |
| 421 | return netip.AddrFrom16(p.maskUUID(uid)) |
| 422 | } |
| 423 | |
| 424 | // PrefixFromUUID returns a single IPv6 /128 prefix corresponding to the given UUID. |
| 425 | func (p ServicePrefix) PrefixFromUUID(uid uuid.UUID) netip.Prefix { |