NewPartitionRing creates a new PartitionRing with default options.
(desc PartitionRingDesc)
| 75 | |
| 76 | // NewPartitionRing creates a new PartitionRing with default options. |
| 77 | func NewPartitionRing(desc PartitionRingDesc) (*PartitionRing, error) { |
| 78 | return NewPartitionRingWithOptions(desc, DefaultPartitionRingOptions()) |
| 79 | } |
| 80 | |
| 81 | // NewPartitionRingWithOptions creates a new PartitionRing with custom options. |
| 82 | func NewPartitionRingWithOptions(desc PartitionRingDesc, opts PartitionRingOptions) (*PartitionRing, error) { |