package
0.1.0
Repository: https://github.com/src-d/framework.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

No description provided by the author
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.