Switch to separate PA struct

This commit is contained in:
Roland Shoemaker 2015-08-14 11:12:59 -07:00
parent 56aa55208e
commit 17fa14264e
2 changed files with 6 additions and 4 deletions

View File

@ -159,7 +159,7 @@ func main() {
blog.SetAuditLogger(auditlogger)
// Configure DB
dbMap, err := sa.NewDbMap(c.Common.DBDriver, c.Common.DBConnect)
dbMap, err := sa.NewDbMap(c.PA.DBDriver, c.PA.DBConnect)
cmd.FailOnError(err, "Could not connect to database")
dbMap.AddTableWithName(core.ExternalCert{}, "externalCerts").SetKeys(false, "SHA1")

View File

@ -170,6 +170,11 @@ type Config struct {
StatsdRate float32
}
PA struct {
DBDriver string
DBConnect string
}
Common struct {
BaseURL string
// Path to a PEM-encoded copy of the issuer certificate.
@ -178,9 +183,6 @@ type Config struct {
DNSResolver string
DNSTimeout string
DBDriver string
DBConnect string
}
SubscriberAgreementURL string