Versions in this module Expand all Collapse all v0 v0.1.1 Oct 24, 2024 Changes in this version + type LockType int + const Exclusive + const Shared + type TouchFile struct + func NewTouchFile(path string) (*TouchFile, error) + func (tf *TouchFile) ExclusiveLock(ctx context.Context) error + func (tf *TouchFile) Lock(ctx context.Context, lockType LockType) error + func (tf *TouchFile) Path() string + func (tf *TouchFile) SharedLock(ctx context.Context) error + func (tf *TouchFile) Unlock() error + func (tf *TouchFile) WithLock(ctx context.Context, lockType LockType, f func() error) error v0.1.0 Oct 24, 2024