bump 1.0.0 and add status screenshot.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
f9d5b91b6c
commit
d12a27c9d9
18
README.md
18
README.md
|
@ -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).
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package gopush
|
||||
|
||||
const (
|
||||
Version = "0.0.1"
|
||||
Version = "1.0.0"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 118 KiB |
Loading…
Reference in New Issue