Documentation ¶
Overview ¶
Package drivers contains instruments for drivers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRollbackTr = errors.New("rollback")
ErrRollbackTr is used to rollback transaction, which runs in closure.
Functions ¶
This section is empty.
Types ¶
type IsClosed ¶
type IsClosed struct {
// contains filtered or unexported fields
}
IsClosed stores the state of the trm.Transaction.
func (*IsClosed) CloseWithCause ¶
CloseWithCause closes the channel and stores error from transaction commit or rollback.
func (*IsClosed) Closed ¶
func (a *IsClosed) Closed() <-chan struct{}
Closed returns a channel that's closed when trm.Transaction done. Closed is provided for use in select statements.
func (*IsClosed) Err ¶
Err is inspired function Err in https://pkg.go.dev/context#Context
Click to show internal directories.
Click to hide internal directories.