Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexingLock ¶
type IndexingLock struct {
// contains filtered or unexported fields
}
func NewIndexingLock ¶
func NewIndexingLock() *IndexingLock
func (*IndexingLock) InProgressCount ¶
func (l *IndexingLock) InProgressCount() int
func (*IndexingLock) LockAll ¶
func (l *IndexingLock) LockAll() error
func (*IndexingLock) TryLock ¶
func (l *IndexingLock) TryLock(repoID uint32) bool
TryLock tries to acquire a lock for a given repository id.
func (*IndexingLock) Unlock ¶
func (l *IndexingLock) Unlock(repoID uint32)
func (*IndexingLock) UnlockAll ¶
func (l *IndexingLock) UnlockAll()
Click to show internal directories.
Click to hide internal directories.