WithMax sets the maximum identifier to be allocated
(id idpool.ID)
| 390 | |
| 391 | // WithMax sets the maximum identifier to be allocated |
| 392 | func WithMax(id idpool.ID) AllocatorOption { |
| 393 | return func(a *Allocator) { a.max = id } |
| 394 | } |
| 395 | |
| 396 | // WithPrefixMask sets the prefix used for all ID allocations. If set, the mask |
| 397 | // will be ORed to all selected IDs prior to allocation. It is the |
no outgoing calls
searching dependent graphs…