feat: support sync mode for http response. (#208)

* feat: support sync mode for http response.

* fix: update readme.

* fix: check wg exist.

* fix: testing sync mode.
This commit is contained in:
Bo-Yi Wu
2017-04-06 15:00:49 +08:00
committed by GitHub
parent fcdd369cec
commit b6997ea792
7 changed files with 62 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ type SectionCore struct {
WorkerNum int64 `yaml:"worker_num"`
QueueNum int64 `yaml:"queue_num"`
Mode string `yaml:"mode"`
Sync bool `yaml:"sync"`
SSL bool `yaml:"ssl"`
CertPath string `yaml:"cert_path"`
KeyPath string `yaml:"key_path"`
@@ -123,6 +124,7 @@ func BuildDefaultPushConf() ConfYaml {
conf.Core.WorkerNum = int64(runtime.NumCPU())
conf.Core.QueueNum = int64(8192)
conf.Core.Mode = "release"
conf.Core.Sync = false
conf.Core.SSL = false
conf.Core.CertPath = "cert.pem"
conf.Core.KeyPath = "key.pem"