bump 1.0.0 and add status screenshot.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-04-11 15:13:13 +08:00
parent f9d5b91b6c
commit d12a27c9d9
5 changed files with 19 additions and 3 deletions

View File

@ -12,7 +12,7 @@ A push notification server using [Gin](https://github.com/gin-gonic/gin) framewo
* Support command line to send single Android or iOS notification.
* Support Web API to send push notification.
See the [YAML config example](config/config.yaml):
See the [YAML config example](config/config.yml):
```yaml
core:
@ -81,6 +81,22 @@ The default endpoint is APNs development. Please add `-production` flag for APNs
$ gopush -ios -m="your message" -i="API Key" -t="Device token" -production
```
### Run gopush with web server
Please make sure your [config.yml](config/config.yml) exist. Default port is `8088`.
```bash
$ gopush -c config.yml
```
Test status of api server using [httpie](https://github.com/jkbrzt/httpie) tool:
```bash
$ http -v --verify=no --json GET https://localhost:8088/api/status
```
![statue screenshot](screenshot/status.png)
## License
Copyright 2016 Bo-Yi Wu [@appleboy](https://twitter.com/appleboy).

View File

@ -1,7 +1,7 @@
package gopush
const (
Version = "0.0.1"
Version = "1.0.0"
)
const (

View File

@ -16,7 +16,7 @@ func PrintGoPushVersion() {
func VersionMiddleware() gin.HandlerFunc {
// Set out header value for each response
return func(c *gin.Context) {
c.Writer.Header().Set("Server-Version", "GoPush "+Version)
c.Writer.Header().Set("Server-Version", "GoPush/"+Version)
c.Next()
}
}

BIN
screenshot/status.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB