6 "github.com/mjl-/bstore"
8 "github.com/mjl-/mox/mlog"
9 "github.com/mjl-/mox/mox-"
13 ReportDBTypes = []any{Record{}}
17 // Accessed directly by tlsrptsend.
18 ResultDBTypes = []any{TLSResult{}, SuppressAddress{}}
22// Init opens and possibly initializes the databases.
24 if _, err := reportDB(mox.Shutdown); err != nil {
27 if _, err := resultDB(mox.Shutdown); err != nil {
33// Close closes the database connections.
35 log := mlog.New("tlsrptdb", nil)
37 err := ResultDB.Close()
38 log.Check(err, "closing result database")
45 err := ReportDB.Close()
46 log.Check(err, "closing report database")