diff --git a/config/config.go b/config/config.go index 3183409..3722234 100644 --- a/config/config.go +++ b/config/config.go @@ -9,31 +9,31 @@ import ( ) var ( - logg = logging.NewVanilla().WithDomain("visedriver-config") - defaultLanguage = "eng" - languages []string - DefaultLanguage string - dbConn string - dbConnMissing bool - dbConnMode storage.DbMode - stateDbConn string - stateDbConnMode storage.DbMode - resourceDbConn string - resourceDbConnMode storage.DbMode - userDbConn string - userDbConnMode storage.DbMode - Languages []string + logg = logging.NewVanilla().WithDomain("visedriver-config") + defaultLanguage = "eng" + languages []string + DefaultLanguage string + dbConn string + dbConnMissing bool + dbConnMode storage.DbMode + stateDbConn string + stateDbConnMode storage.DbMode + resourceDbConn string + resourceDbConnMode storage.DbMode + userDbConn string + userDbConnMode storage.DbMode + Languages []string ) type Override struct { - DbConn *string - DbConnMode storage.DbMode - StateConn *string - StateConnMode storage.DbMode - ResourceConn *string - ResourceConnMode storage.DbMode - UserConn *string - UserConnMode storage.DbMode + DbConn *string + DbConnMode storage.DbMode + StateConn *string + StateConnMode storage.DbMode + ResourceConn *string + ResourceConnMode storage.DbMode + UserConn *string + UserConnMode storage.DbMode } func setLanguage() error { diff --git a/storage/conn.go b/storage/conn.go index 235640a..99ba13e 100644 --- a/storage/conn.go +++ b/storage/conn.go @@ -29,8 +29,8 @@ const ( ) var ( - DbModeDebug = []string{"ANY", "BIN", "TXT"} - DbTypeDebug = []string{"NONE", "MEM", "FS", "GDBM", "POSTGRES"} + DbModeDebug = []string{"ANY", "BIN", "TXT"} + DbTypeDebug = []string{"NONE", "MEM", "FS", "GDBM", "POSTGRES"} DbStoreDebug = []string{"STATE", "RESOURCE", "USER"} ) @@ -68,7 +68,7 @@ type ConnData struct { typ int str string domain string - mode DbMode + mode DbMode } func (cd *ConnData) DbType() int {