Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registrar ¶
type Registrar struct {
// contains filtered or unexported fields
}
Registrar stores one-to-one name<->key mappings. Names and keys must be unique. Registrar is safe for concurrent access.
func NewRegistrar ¶
func NewRegistrar() *Registrar
NewRegistrar creates a new Registrar with the empty indexes.
func (*Registrar) ReleaseByKey ¶
ReleaseByKey releases the reserved name<->key mapping by key.
func (*Registrar) ReleaseByName ¶
ReleaseByName releases the reserved name<->key mapping by name. Once released, the name and the key can be reserved again.
Click to show internal directories.
Click to hide internal directories.