forked from grassrootseconomics/visedriver
Fmt
This commit is contained in:
parent
6749c632b0
commit
15ce29a1a4
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user