Documentation ¶
Index ¶
Constants ¶
View Source
const (
Transaction = transactionArgumentKey(iota)
)
Variables ¶
View Source
var Db *sql.DB
Functions ¶
This section is empty.
Types ¶
type RequestTransaction ¶
Transaction is a decorator which manages a transaction for an HTTP request. It will Commit the transaction iff the handler returns something other than an error and it did not panic; it Rollbacks otherwise.
Click to show internal directories.
Click to hide internal directories.