Documentation ¶
Index ¶
Constants ¶
View Source
const ( TABLE_NAME = "DiggerDynamoDBLockTable" TableCreationInterval = 1 * time.Second TableCreationRetryCount = 10 TableLockTimeout = 60 * 60 * 24 * 90 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoDBClient ¶
type DynamoDBClient interface { DescribeTable(ctx context.Context, params *dynamodb.DescribeTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DescribeTableOutput, error) CreateTable(ctx context.Context, params *dynamodb.CreateTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.CreateTableOutput, error) UpdateItem(ctx context.Context, params *dynamodb.UpdateItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.UpdateItemOutput, error) DeleteItem(ctx context.Context, params *dynamodb.DeleteItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DeleteItemOutput, error) GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error) }
type DynamoDbLock ¶
type DynamoDbLock struct {
DynamoDb DynamoDBClient
}
func (*DynamoDbLock) GetLock ¶
func (dynamoDbLock *DynamoDbLock) GetLock(lockId string) (*int, error)
Click to show internal directories.
Click to hide internal directories.