Expand description
Distributed lock backed by Dynamodb. Adapted from https://github.com/awslabs/amazon-dynamodb-lock-client.
Modules§
- dynamo_
lock_ options - DynamoDb option keys to use when creating DynamoDbOptions. The same key should be used whether passing a key in the hashmap or setting it as an environment variable.
Structs§
- Dynamo
DbLock Client - Provides a simple library for using DynamoDB’s consistent read/write feature to use it for managing distributed locks.
- Dynamo
DbOptions - Configuration options for
DynamoDbLockClient
. - Lock
Item - A lock that has been successfully acquired
Enums§
- Dynamo
Error - Error returned by the
DynamoDbLockClient
API. - Region
- Re-export of [rusuto_core::Region] for convenience An AWS region.
Constants§
- DATA
- The field name of
data
in DynamoDB - DATA_
DESTINATION - The field name of
data.destination
in DynamoDB - DATA_
SOURCE - The field name of
data.source
in DynamoDB - IS_
NON_ ACQUIRABLE - The field name of
is_non_acquirable
in DynamoDB - IS_
RELEASED - The field name of
is_released
in DynamoDB - LEASE_
DURATION - The field name of
lease_duration
in DynamoDB - OWNER_
NAME - The field name of
owner_name
in DynamoDB - PARTITION_
KEY_ NAME - The partition key field name in DynamoDB
- RECORD_
VERSION_ NUMBER - The field name of
record_version_number
in DynamoDB
Traits§
- Lock
Client - Abstraction over a distributive lock provider