Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRollback = errors.New("ErrRollback")
ErrRollback is used stop with.Tx
Functions ¶
func Close ¶
func Close(cl Closer, fn func())
Close is convenient wrapper for closing after performing some action
func Lock ¶
func Lock(l Locker, fn func())
Lock simple wrapper for locking -> performing action -> unlocking
Types ¶
Click to show internal directories.
Click to hide internal directories.