db

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDBLockClient

type DynamoDBLockClient struct {
	// contains filtered or unexported fields
}

func NewDynamoDBLockClient

func NewDynamoDBLockClient(tableName string, endpoint string) *DynamoDBLockClient

func (*DynamoDBLockClient) Lock

func (c *DynamoDBLockClient) Lock(key string, timeout int64)

func (*DynamoDBLockClient) Unlock

func (c *DynamoDBLockClient) Unlock(key string)

type LockClient

type LockClient interface {
	Lock()
	Unlock()
}

type LockItem

type LockItem struct {
	LockID string
	Ttl    int64
}

Jump to

Keyboard shortcuts

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