Crate dynamodb_lock

Source
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§

DynamoDbLockClient
Provides a simple library for using DynamoDB’s consistent read/write feature to use it for managing distributed locks.
DynamoDbOptions
Configuration options for DynamoDbLockClient.
LockItem
A lock that has been successfully acquired

Enums§

DynamoError
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§

LockClient
Abstraction over a distributive lock provider