Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SessionInterestLockKey ¶
func SessionLockKey ¶
Types ¶
type GlobalLockAppropriator ¶
GlobalLockAppropriator can be used to acquire global locks on resources
func NewGlobalLockAppropriator ¶
func NewGlobalLockAppropriator(dynamo *dynamodb.DynamoDB, tableName string, retry time.Duration, maxDuration time.Duration) GlobalLockAppropriator
NewGlobalLockAppropriator returns a fully wired GlobalLockAppropriator. If lock acquisition fails it will be retried based on retry until maxDuration has passed at which point acquisition will fail with an error.
func (GlobalLockAppropriator) DoWithLock ¶
Click to show internal directories.
Click to hide internal directories.