Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCantLock = errors.New("Can't lock the requested document")
Functions ¶
This section is empty.
Types ¶
type LockedC ¶
type LockedC struct {
// contains filtered or unexported fields
}
a mutex locked collection
func MakeLockedC ¶
func MakeLockedC(c *mgo.Collection) *LockedC
func (*LockedC) GetIdLocked ¶
tries to lock document identified with id with a d timeout, populates result with the document
Click to show internal directories.
Click to hide internal directories.