Struct dynalock::providers::dynamodb::DynamoDbDriverInput
[−]
[src]
pub struct DynamoDbDriverInput { pub table_name: String, pub partition_key_field_name: String, pub partition_key_value: String, pub token_field_name: String, pub duration_field_name: String, pub ttl_field_name: String, pub ttl_value: u64, }
A structure that describes the inputs to DynamoDbDriver::new
.
This structure's Default
trait implementation provides sane default
values. Only the table_name
and the partition_key_field_name
fields are
required.
Fields
table_name: String
The DynamoDB lock table name to be used.
partition_key_field_name: String
The partition key field name.
partition_key_value: String
The partition key value (default: "singleton"). This field should be provided to use the lock driver on multiple shared resources, each represented by a partition key value.
token_field_name: String
The fence token field name (default: "rvn").
duration_field_name: String
The lease duration field name (default: "duration").
ttl_field_name: String
The TTL field name (default: "ttl").
ttl_value: u64
The TTL value to be added to the wall clock for expiration (default: 7 days in seconds).
Trait Implementations
impl Debug for DynamoDbDriverInput
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more