Bladeren bron

start to move CRM configurations into files.

master
Patrick Peng Sun 9 jaren geleden
bovenliggende
commit
11f89d0dae
1 gewijzigde bestanden met toevoegingen van 16 en 0 verwijderingen
  1. +16
    -0
      config.go

+ 16
- 0
config.go Bestand weergeven

//APIConfig contains secrets that cannot store in source file //APIConfig contains secrets that cannot store in source file
var APIConfig WechatAPIConfig 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 { func readConfig() error {


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

Laden…
Annuleren
Opslaan