# Functions
DefaultBackOffGenerator provides a default exponential backoff implementation for use with WithBackOffGenerator.
DefaultGoogleHTTPClient provides a standard Google API HTTP client to be used with WitHTTPClient.
DefaultLockFileMetadataGenerator provides a default lock file metadata generator including information about the time, host, and call stack of the lock acquisition call to be used with WithLockFileMetadataGenerator.
NewGCSLock creates a new Google Cloud Storage (GCS) globally-consistent contextlock.ContextLocker type, which will write the lock file to the provided GCS bucket and object (directory & file).
WithBackOffGenerator sets the backoff implementation to use with GCSLock.
WithBaseURL sets the base URL for the Google Cloud Storage API to use with HTTP calls from GCSLock.
WithLockFileMetadataGenerator sets the lock file metadata generator to be used with GCSLock.
WithLogger sets the Zap logger to use with the GCSLock.
WitHTTPClient sets the HTTP client to use with GCSLock HTTP calls to the Google Cloud Storage API.
# Structs
GCSLock uses the strong-consistency guarantees of Google Cloud Storage (GCS) to provide a fault-tolerant, globally-distributed lock via an HTTP API.
# Interfaces
HTTPClientDoer provides an interface wrapper around a *http.Client.
# Type aliases
BackOffGenerator is used to create new backoff iterators.
LockFileMetadataGenerator creates output data to be stored in a GCS lock file when created.
Option provides structured optional arguments to NewGCSLock.