Przeglądaj źródła

add configurable port

master
patrick 6 lat temu
rodzic
commit
43d95bbe23
3 zmienionych plików z 13 dodań i 1 usunięć
  1. +4
    -0
      config.go
  2. +4
    -0
      config.json
  3. +5
    -1
      config.test.json

+ 4
- 0
config.go Wyświetl plik

Pass string `json:Pass` Pass string `json:Pass`
Schema string `json:Schema` Schema string `json:Schema`
} `json:DB` } `json:DB`
Server struct {
Host string `json:Host`
Port string `json:Port`
} `json:Server`
} }


var Config AppConfig var Config AppConfig

+ 4
- 0
config.json Wyświetl plik

"User": "sp", "User": "sp",
"Pass": "sp", "Pass": "sp",
"Schema": "leanwork_pay" "Schema": "leanwork_pay"
},
"Server": {
"Host":"localhost",
"Port":"8080"
} }
} }

+ 5
- 1
config.test.json Wyświetl plik

"User": "sp", "User": "sp",
"Pass": "sp", "Pass": "sp",
"Schema": "leanwork_pay" "Schema": "leanwork_pay"
}
},
"Server": {
"Host":"localhost",
"Port":"8080"
}
} }

Ładowanie…
Anuluj
Zapisz