infra

package
v0.0.0-...-6aa905a Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locker

type Locker struct {
	HeartbeatInterval time.Duration
	// contains filtered or unexported fields
}

func NewLocker

func NewLocker(client *dynamodb.Client, ctx context.Context, lockTable string) *Locker

func (*Locker) AcquireLock

func (l *Locker) AcquireLock(name string, timeout time.Duration) (bool, error)

func (*Locker) Close

func (l *Locker) Close()

func (*Locker) ReleaseLock

func (l *Locker) ReleaseLock(name string)

Jump to

Keyboard shortcuts

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