github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/chat/storage/locks.go (about) 1 package storage 2 3 import ( 4 "sync" 5 6 "github.com/keybase/client/go/libkb" 7 ) 8 9 type locksRepo struct { 10 Inbox, Outbox, ReadOutbox, Version, ConvFailures sync.Mutex 11 StorageLockTab *libkb.LockTable 12 } 13 14 var locks *locksRepo 15 16 func init() { 17 locks = &locksRepo{} 18 locks.StorageLockTab = libkb.NewLockTable() 19 }