package
0.19.1-rc.5
Repository: https://github.com/src-d/borges.git
Documentation: pkg.go.dev

# Functions

New creates a service given a connection string.
NewEtcd creates a new locking service based on etcd given a connection string.
NewLocal creates a new locking service that uses in-process locks.

# Constants

DefaultDialTimeoutEtcd is the timeout for failing to establish a connection.
ServiceEtcd stands for service name.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Services is a registry of all supported services by name.

# Structs

SessionConfig holds configuration for a locking session.

# Interfaces

Locker is the interface to a lock.
Service is a locking service.
Session is a locking session that can be reused to get multiple locks.