Categorygithub.com/hackborn/lid
modulepackage
0.0.2
Repository: https://github.com/hackborn/lid.git
Documentation: pkg.go.dev

# README

WARNING

If for some bizarre reason you've randomly landed on this repo, do not use it. It has not yet been used in any capacity.

lid

lid (lock it down) is a library for locking via DynamoDB.

# Packages

No description provided by the author
No description provided by the author

# Functions

MergeErr returns the first valid error.
MustErr panics on a non-nil error.
RunTestServiceSuite provides scripted testing for the service, allowing chained command lists.

# Constants

Forbidden describes a lock that exists but is owned by another signee.
Someone else owns the lock.
The lock was free, now I own it.
I previously owned it and still do.
Someone else had a stale lock, now I own it.
Someone else owns the lock.
Technically I succeeded - there was nothing to unlock.
The lock was unlocked, no one owns it.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

CheckResponse provides the state of a lock.
Error struct provides additional information about an error.
LockOpts provides options for the Lock operation.
LockRequest provides the parameters to the Lock function.
LockResponse provides the output from the Lock function.
ServiceOpts provides standard options when constructing a service.
UnlockOpts is a placeholder in case we ever have options.
UnlockRequest provides the parameters to the Unlock function.
UnlockResponse provides the output from the Unlock function.

# Interfaces

Service defines the contract for anything that can perform locking operations.
ServiceBootstrap is responsible for initializing and cleaning up a service during testing.
ServiceDebug provides debugging functions on services.

# Type aliases

LockResponseStatus defines a status code for the response.
UnlockResponseStatus defines a status code for the response.