Versions in this module Expand all Collapse all v0 v0.1.2 Aug 24, 2024 Changes in this version + var ErrLockNotClaimed = errors.New("lock not claimed") + type Client struct + func NewClient(addr string, opts ClientOpts) (*Client, error) + func (c Client) ClaimLock(lock string) (*pb.LockResponse, error) + func (c Client) ClaimLockRaw(lock string) (*pb.LockResponse, error) + func (c Client) Close() error + func (c Client) ReleaseLock(lock string) error + func (c Client) WhoAmI() string + type ClientOpts struct + CertPath string + Token string + Who string