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

The DynamoDB lock table name to be used.

The partition key field name.

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.

The fence token field name (default: "rvn").

The lease duration field name (default: "duration").

The TTL field name (default: "ttl").

The TTL value to be added to the wall clock for expiration (default: 7 days in seconds).

Trait Implementations

impl Debug for DynamoDbDriverInput
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for DynamoDbDriverInput
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations