2016-04-13 06:59:28 +00:00
|
|
|
// A push notification server using Gin framework written in Go (Golang).
|
|
|
|
//
|
2016-04-13 07:22:04 +00:00
|
|
|
// Details about the gorush project are found in github page:
|
2016-04-13 06:59:28 +00:00
|
|
|
//
|
2016-04-13 07:22:04 +00:00
|
|
|
// https://github.com/appleboy/gorush
|
2016-04-13 06:59:28 +00:00
|
|
|
//
|
|
|
|
// Support Google Cloud Message using go-gcm library for Android.
|
|
|
|
// Support HTTP/2 Apple Push Notification Service using apns2 library.
|
|
|
|
// Support YAML configuration.
|
|
|
|
// Support command line to send single Android or iOS notification.
|
|
|
|
// Support Web API to send push notification.
|
|
|
|
// Support zero downtime restarts for go servers using endless.
|
|
|
|
// Support HTTP/2 or HTTP/1.1 protocol.
|
|
|
|
//
|
|
|
|
// The pre-compiled binaries can be downloaded from release page.
|
|
|
|
//
|
|
|
|
// Send Android notification
|
|
|
|
//
|
2016-04-13 07:22:04 +00:00
|
|
|
// $ gorush -android -m="your message" -k="API Key" -t="Device token"
|
2016-04-13 06:59:28 +00:00
|
|
|
//
|
|
|
|
// Send iOS notification
|
|
|
|
//
|
2016-04-13 07:22:04 +00:00
|
|
|
// $ gorush -ios -m="your message" -i="API Key" -t="Device token"
|
2016-04-13 06:59:28 +00:00
|
|
|
//
|
|
|
|
// The default endpoint is APNs development. Please add -production flag for APNs production push endpoint.
|
|
|
|
//
|
2016-04-13 07:22:04 +00:00
|
|
|
// $ gorush -ios -m="your message" -i="API Key" -t="Device token" -production
|
2016-04-13 06:59:28 +00:00
|
|
|
//
|
|
|
|
// For more details, see the documentation and example.
|
|
|
|
//
|
2016-04-13 07:02:09 +00:00
|
|
|
package main
|