aws

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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 DynamoDbLock

type DynamoDbLock struct {
	DynamoDb *dynamodb.DynamoDB
}

func (*DynamoDbLock) GetLock

func (dynamoDbLock *DynamoDbLock) GetLock(lockId string) (*int, error)

func (*DynamoDbLock) Lock

func (dynamoDbLock *DynamoDbLock) Lock(transactionId int, resource string) (bool, error)

func (*DynamoDbLock) Unlock

func (dynamoDbLock *DynamoDbLock) Unlock(resource string) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL