Versions in this module Expand all Collapse all v0 v0.17.0 Jul 14, 2023 Changes in this version + func AcquireLock(options *Options) error + func GetLockStatus(options *Options) (*dynamodb.GetItemOutput, error) + func NewAuthenticatedSession(awsRegion string) (*session.Session, error) + func NewDynamoDb(awsRegion string) (*dynamodb.DynamoDB, error) + func ReleaseLock(options *Options) error + func ScanLocks(options *Options) ([]string, error) + type Lock struct + ID string + type Options struct + AwsRegion string + AwsSession *session.Session + LockString string + LockTable string + Logger *logrus.Entry + MaxRetries int + SleepBetweenRetries time.Duration + type TableNotActiveError struct + LockTable string + func (err TableNotActiveError) Error() string + type TimeoutExceeded struct + LockString string + LockTable string + Timeout time.Duration + func (err TimeoutExceeded) Error() string