Documentation
¶
Overview ¶
Package uniqueness provides shared identity-claim primitives for queue drivers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
MemoryStore holds TTL claims within one queue backend instance. Its zero value is ready for use.
func (*MemoryStore) Acquire ¶
Acquire claims key for ttl and returns an ownership token when no live claim exists.
func (*MemoryStore) Release ¶
func (s *MemoryStore) Release(key string, token uint64)
Release removes key only when token still owns its current claim.
Click to show internal directories.
Click to hide internal directories.