소스 검색

start to move CRM configurations into files.

master
Patrick Peng Sun 8 년 전
부모
커밋
11f89d0dae
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. +16
    -0
      config.go

+ 16
- 0
config.go 파일 보기

@@ -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")

Loading…
취소
저장