This commit is contained in:
lash 2025-01-22 18:37:54 +00:00
parent 6749c632b0
commit 15ce29a1a4
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 25 additions and 25 deletions

View File

@ -9,31 +9,31 @@ import (
) )
var ( var (
logg = logging.NewVanilla().WithDomain("visedriver-config") logg = logging.NewVanilla().WithDomain("visedriver-config")
defaultLanguage = "eng" defaultLanguage = "eng"
languages []string languages []string
DefaultLanguage string DefaultLanguage string
dbConn string dbConn string
dbConnMissing bool dbConnMissing bool
dbConnMode storage.DbMode dbConnMode storage.DbMode
stateDbConn string stateDbConn string
stateDbConnMode storage.DbMode stateDbConnMode storage.DbMode
resourceDbConn string resourceDbConn string
resourceDbConnMode storage.DbMode resourceDbConnMode storage.DbMode
userDbConn string userDbConn string
userDbConnMode storage.DbMode userDbConnMode storage.DbMode
Languages []string Languages []string
) )
type Override struct { type Override struct {
DbConn *string DbConn *string
DbConnMode storage.DbMode DbConnMode storage.DbMode
StateConn *string StateConn *string
StateConnMode storage.DbMode StateConnMode storage.DbMode
ResourceConn *string ResourceConn *string
ResourceConnMode storage.DbMode ResourceConnMode storage.DbMode
UserConn *string UserConn *string
UserConnMode storage.DbMode UserConnMode storage.DbMode
} }
func setLanguage() error { func setLanguage() error {

View File

@ -29,8 +29,8 @@ const (
) )
var ( var (
DbModeDebug = []string{"ANY", "BIN", "TXT"} DbModeDebug = []string{"ANY", "BIN", "TXT"}
DbTypeDebug = []string{"NONE", "MEM", "FS", "GDBM", "POSTGRES"} DbTypeDebug = []string{"NONE", "MEM", "FS", "GDBM", "POSTGRES"}
DbStoreDebug = []string{"STATE", "RESOURCE", "USER"} DbStoreDebug = []string{"STATE", "RESOURCE", "USER"}
) )
@ -68,7 +68,7 @@ type ConnData struct {
typ int typ int
str string str string
domain string domain string
mode DbMode mode DbMode
} }
func (cd *ConnData) DbType() int { func (cd *ConnData) DbType() int {