Quellcode durchsuchen

start to move CRM configurations into files.

master
Patrick Peng Sun vor 8 Jahren
Ursprung
Commit
11f89d0dae
1 geänderte Dateien mit 16 neuen und 0 gelöschten Zeilen
  1. +16
    -0
      config.go

+ 16
- 0
config.go Datei anzeigen

@@ -32,6 +32,22 @@ type WechatAPIConfig struct {
//APIConfig contains secrets that cannot store in source file
var APIConfig WechatAPIConfig

type EspoCRMAPIConfig struct {

//where the EspoCRM is installed
BaseURL string `json:"BaseURL"`

//access UserName
UserName string `json:"UserName"`

//access Password
UserPass string `json:"password"`
}

//CRMConfig contains secrets that cannot store in source file
//
var CRMConfig EspoCRMAPIConfig

func readConfig() error {

log.Printf("read config from %s\r\n", "server_config.json")

Laden…
Abbrechen
Speichern