boulder/sa
Jacob Hoffman-Andrews 8167d877c3 Add contexts to SA (#3919)
In all cases where we were using `dbMap`, use `dbMap.WithContext()`.

Because of the way Gorp implements contexts, we can't add a context when
opening a transaction, committing it, or rolling it back, but we can add a context
when doing operations within a transaction, using `tx.WithContext()`.

Some functions in SA expected an argument of `gorp.DbMap` or `gorp.Transaction`.
Since Gorp's `WithContext()` functions return a `gorp.SqlExecutor`, those functions
had to be updated. This PR introduces a few local interfaces that define a
subset of methods required from `gorp.SqlExecutor`, which allows more narrowly
defining inputs to functions.
2018-11-05 10:40:05 -05:00
..
_db Change pendingAuthorizations indexes for better performance. (#3775) 2018-06-26 10:49:20 -07:00
_db-next Remove ocspResponses table (#3920) 2018-11-02 11:35:49 -07:00
proto Excise code relating to pre-SCT embedding issuance flow (#3769) 2018-06-28 08:33:05 -04:00
satest Replace go-jose v1 with go-jose v2. (#2899) 2017-07-26 10:55:14 -07:00
authz.go Add contexts to SA (#3919) 2018-11-05 10:40:05 -05:00
database.go Remove LockCol for challenges (#3857) 2018-09-17 10:52:51 -07:00
database_test.go remove prefixdb and replace with mysql driver params (#2871) 2017-07-17 16:40:56 -07:00
ip_range_test.go Remove all stray copyright headers and appends the initial line to LICENSE.txt (#1853) 2016-05-31 12:32:04 -07:00
model.go Add contexts to SA (#3919) 2018-11-05 10:40:05 -05:00
model_test.go Consolidate registration model (#3064) 2017-09-12 12:35:40 -04:00
rollback.go Only wrap error given to `Rollback` when `tx.Rollback()` fails. (#3025) 2017-08-31 14:44:25 -04:00
rollback_test.go Only wrap error given to `Rollback` when `tx.Rollback()` fails. (#3025) 2017-08-31 14:44:25 -04:00
sa.go Add contexts to SA (#3919) 2018-11-05 10:40:05 -05:00
sa_test.go Add contexts to SA (#3919) 2018-11-05 10:40:05 -05:00
test-cert.der Store a DB of issued names. 2015-09-28 19:37:50 -07:00
test-cert2.der Implement rate limiting by domain name. 2015-10-04 21:04:26 -07:00
type-converter.go Replace go-jose v1 with go-jose v2. (#2899) 2017-07-26 10:55:14 -07:00
type-converter_test.go Replace go-jose v1 with go-jose v2. (#2899) 2017-07-26 10:55:14 -07:00
www.eff.org.der Add initial certificate status in SA. 2015-04-23 19:52:34 -07:00