Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitKeysDelete ¶
func WaitKeysDelete(ctx context.Context, c *v3.Client, prefix string, response *v3.GetResponse) error
WaitKeysDelete waits on a keys until it observes the given delete event or returns error if the channel closes.
Types ¶
type EphemeralKV ¶
type EphemeralKV struct{ RemoteKV }
EphemeralKV is a new key associated with a session lease
type RWMutex ¶
type RWMutex struct {
// contains filtered or unexported fields
}
RWMutex struct for RWLock mutext
func NewRWMutex ¶
func NewRWMutex(s *concurrency.Session, prefix string) *RWMutex
NewRWMutex for RWLock management. Session will define a refreshing update of a lock on server. If session is Orphaned or closed, the remote lock will be lost.
func (*RWMutex) RLock ¶
RLock Read Lock. Will obey context for the deadline or canceling of lock acquirement
Click to show internal directories.
Click to hide internal directories.