From 88183ffbba1148b2ae8778807e361f7610e1fa04 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 23 Apr 2016 15:46:17 +0800 Subject: [PATCH] fix json name. Signed-off-by: Bo-Yi Wu --- README.md | 2 +- gorush/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 340f579..f1363f2 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ A push notification server using [Gin](https://github.com/gin-gonic/gin) framewo * Support notification queue and multiple workers. * Support `/api/stat/app` show notification success and failure counts. * Support `/api/config` show your yml config. -* Support store app stat to [redis](http://redis.io/) or memory. +* Support store app stat to memory, [redis](http://redis.io/) or [BoltDB](https://github.com/boltdb/bolt). See the [YAML config example](config/config.yml): diff --git a/gorush/config.go b/gorush/config.go index 7511ee7..4e8f60e 100644 --- a/gorush/config.go +++ b/gorush/config.go @@ -61,7 +61,7 @@ type SectionLog struct { // SectionStat is sub seciont of config. type SectionStat struct { - Engine string `yaml:"service"` + Engine string `yaml:"engine"` Redis SectionRedis `yaml:"redis"` BoltDB SectionBoltDB `yaml:"boltdb"` }