lease/lessor.go
func (l *Lease) Keys() []string {
	l.mu.RLock()
	keys := make([]string, 0, len(l.itemSet))
	for k := range l.itemSet {
		keys = append(keys, k.Key)
	}
	l.mu.RUnlock()
	return keys
}
func (l *Lease) Keys() []string {
	l.mu.RLock()
	keys := make([]string, 0, len(l.itemSet))
	for k := range l.itemSet {
		keys = append(keys, k.Key)
	}
	l.mu.RUnlock()
	return keys
}
func ( l * Lease ) Keys ( ) [ ] string { l . mu . RLock ( ) keys := make ( [ ] string , 0 , len ( l . itemSet ) ) for k := range l . itemSet { keys = append ( keys , k . Key ) } l . mu . RUnlock ( ) return keys }
// Keys returns all the keys attached to the lease.
Keys returns all the keys attached to the lease .