Commit Graph

189 Commits

Author SHA1 Message Date
Bo-Yi Wu f155e20fa2 fix: Remove unnecessary type conversions (#176) 2017-01-27 18:19:39 +08:00
Bo-Yi Wu 9bd6886c1e refactor: Support empty notification for android (#170) 2017-01-21 12:18:41 +08:00
Bo-Yi Wu da1231315f fix: [ci skip] fix docs. 2017-01-19 22:21:53 +08:00
Bo-Yi Wu a7b969dcf3 refactor: update import path. 2017-01-19 17:08:12 +08:00
Bo-Yi Wu a669070ffb feat: support prometheus metric url. (#168) 2017-01-19 16:56:30 +08:00
Bo-Yi Wu 5d0bbdf4ad Add load tls file testing error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-01-01 16:01:08 +08:00
Bo-Yi Wu d6f9d132ea update gofight to v2.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-01-01 16:01:08 +08:00
Bo-Yi Wu 218e3fbddc replace endless with facebook grace package.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-01-01 16:01:08 +08:00
Bo-Yi Wu 1707f39b7d remove required field: message
Fix #162
Fix #146

//     "aps" : {
//         "alert" : {
//             "title" : "Game Request",
//             "body" : "Bob wants to play poker",
//             "action-loc-key" : "PLAY"
//         },
//         "badge" : 5
//     },

and

//     "aps" : {
//         "alert" : "You got your emails.",
//         "badge" : 9,
//         "sound" : "bingbong.aiff"
//     },

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-24 15:54:48 +08:00
Bo-Yi Wu 1f404e0864 fix reset color format.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-20 09:47:58 +08:00
Bo-Yi Wu d94e305e73 remove ForceColors for logrus package.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-20 09:37:25 +08:00
Bo-Yi Wu 9595062bbf refactor default engine as memory.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-20 09:34:25 +08:00
Bo-Yi Wu c9873b1644 skip ANSI color commands
ref: https://github.com/gin-gonic/gin/pull/754

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-14 23:25:35 +08:00
Bo-Yi Wu c5bba12d76 remove zero downtime for windows.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-14 00:08:36 +08:00
Bo-Yi Wu 409a8c8e13 Support Windows binary.
https://github.com/fvbock/endless/pull/19

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-13 22:05:47 +08:00
Bo-Yi Wu 65d486b65b ignore alert object if message is empty.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-09 22:56:03 +08:00
Bo-Yi Wu 1f2da28f4b fixed #147 support zero value of badge.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-08 10:13:32 +08:00
Bo-Yi Wu 5f79283d4f fix golint error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-07 22:11:58 +08:00
Bo-Yi Wu 711a25eb6d update testing to 1.7.4 and 1.6.4
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-07 22:11:57 +08:00
Bo-Yi Wu 4b10396093 Suppo zero value to clear the badge on the app icon.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-07 14:33:24 +08:00
Bo-Yi Wu (吳柏毅) 40dabf75c5 support subtitle for apple watch.
Signed-off-by: Bo-Yi Wu (吳柏毅) <appleboy.tw@gmail.com>
2016-11-26 14:42:49 +08:00
Bo-Yi Wu 81f37465b0 request retry must be small than max retry.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-10-23 21:52:23 +08:00
Bo-Yi Wu 7167ce8323 update retry func.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-10-23 21:18:54 +08:00
Bo-Yi Wu f1428c1446 Support Retry condition.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-10-23 21:18:54 +08:00
Bo-Yi Wu b744208a29 Support app version on api.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-09-30 10:49:52 +08:00
Bo-Yi Wu f24c65a9fa Add bunt db testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-09-19 21:52:40 +08:00
Bo-Yi Wu bf56f592e8 support LevelDB key/value database.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-09-19 16:19:20 +08:00
Bo-Yi Wu 3294dbaf95 changed type for core section.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-09-02 15:55:47 +08:00
Bo-Yi Wu c2b4d31419 fix SetProxy lint error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-07-31 20:58:13 +08:00
Bo-Yi Wu 4a431243df Initial proxy setting for web server.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-07-29 09:38:06 +08:00
Bo-Yi Wu e784ae538a Support set http proxy for gorush CLI.
only working for GCM protocol.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-07-29 08:48:24 +08:00
Bo-Yi Wu ac71f41f45 fix testing report.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-07-20 17:06:26 +08:00
Bo-Yi Wu bc6aeeb4f1 add https test.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-07-10 16:16:06 +08:00
Bo-Yi Wu f65ccaaa8a Show response time, status code etc.
https://github.com/thoas/stats

Fixed #103

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-06-26 12:21:32 +08:00
Bo-Yi Wu 82cb2f5246 fix golint.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-06-25 21:40:38 +08:00
Bo-Yi Wu ea79208bab bump dependency version.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-06-22 10:13:43 +08:00
Bo-Yi Wu 382b998769 [ci skip] add debug message.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-06-15 09:18:10 +08:00
Bo-Yi Wu 6be5e24833 rename pem_path to key_path.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-06-12 19:09:41 +08:00
Bo-Yi Wu 377fca0bae [ci skip] update readme.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-06-12 15:56:13 +08:00
Bo-Yi Wu 146854e381 fixed #90 Support load p12 format of certificate file.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-06-12 15:54:17 +08:00
Bo-Yi Wu b514bd3e00 upgrade google gcm library.
Change TimeToLive type to *unit to allow zero values.

ref:
bda37d790a

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-06-04 20:15:43 +08:00
Bo-Yi Wu 919ffe6726 Fixed #93 Support password parameter when loads a PEM certificate from a local file.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-30 15:53:16 +08:00
Bo-Yi Wu 49c376a765 fixed #91 Remove pem_cert_path config setting.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-27 14:53:54 +08:00
Bo-Yi Wu 349099fcf6 test gorush version.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-19 22:45:42 +08:00
Bo-Yi Wu af63356e56 add hide token config.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-16 21:04:05 +08:00
Bo-Yi Wu 537605a86c Add hideToken func.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-16 20:36:56 +08:00
Bo-Yi Wu d9f7c16432 add version from flag
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-09 14:48:07 +08:00
Bo-Yi Wu 0a673bde48 fixed #78 docker test error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-03 20:39:24 +08:00
Bo-Yi Wu ef8e4daa1a Fixed #77 Move storage plugin to top folder.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-03 10:26:13 +08:00
Bo-Yi Wu 6005a51e0c rename the config path.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-03 09:56:59 +08:00
Bo-Yi Wu 865f55438d add all test task.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-03 09:42:53 +08:00
Bo-Yi Wu 5994f48e7e integrate boltdb engine.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-02 20:22:37 +08:00
Bo-Yi Wu 03ab8eeac7 integrate redis engine.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-02 19:42:21 +08:00
Bo-Yi Wu 8df5c63860 integrate memory engine.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-02 17:03:08 +08:00
Bo-Yi Wu 9cfe693ad9 switch default private key to public.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-02 14:55:24 +08:00
Bo-Yi Wu 859a24d049 fix gofmt.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-02 11:05:32 +08:00
Bo-Yi Wu 077f836d1c Fixed #66 Support memory interface.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-02 11:04:19 +08:00
Bo-Yi Wu 63e27aa527 bump version.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-05-01 22:38:02 +08:00
Bo-Yi Wu 6c1c509a5c fix golint.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-24 15:57:38 +08:00
Bo-Yi Wu 28bdc4a456 fix constant variable.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-24 15:54:41 +08:00
Bo-Yi Wu b921030688 check android message.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-24 14:30:17 +08:00
Bo-Yi Wu 88183ffbba fix json name.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-23 15:46:17 +08:00
Bo-Yi Wu 48c792ad43 fix gofmt.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-23 15:20:42 +08:00
Bo-Yi Wu 8e79329131 update redis func
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-23 15:20:30 +08:00
Bo-Yi Wu f5857f54b0 Feature #58 support BoltDB engine
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-23 15:13:57 +08:00
Bo-Yi Wu f6ad753345 test redis connect
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-22 23:39:36 +08:00
Bo-Yi Wu a8116a8ccb add init redis func.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-22 23:01:01 +08:00
Bo-Yi Wu 9a609aa5fe update variable.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-22 22:45:19 +08:00
Bo-Yi Wu 6ef663928d fix initial error count for redis.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-22 18:20:01 +08:00
Bo-Yi Wu d95cb2abb5 Feature #61 support redis engine.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-22 17:54:00 +08:00
Bo-Yi Wu b690825cd4 add redis config.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-22 15:47:14 +08:00
Bo-Yi Wu 0982edecdc fix gofmt error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-17 13:14:27 +08:00
Bo-Yi Wu 6532e719f1 #59 fix gorush gocyclo error for ios.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-17 13:11:45 +08:00
Bo-Yi Wu 0f09f5c851 fix gofmt error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-15 18:06:16 +08:00
Bo-Yi Wu e0a83faecb [ci skip] fix golint error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-15 16:59:57 +08:00
Bo-Yi Wu 158ab729d2 fix #56 show server yml config file.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-15 15:05:23 +08:00
Bo-Yi Wu a346f29f95 Support success or failure of notification counts information.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-15 10:24:39 +08:00
Bo-Yi Wu e6f2bf5152 Add app status.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-15 09:41:10 +08:00
Bo-Yi Wu b877f1cc9e fix testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-14 23:58:25 +08:00
Bo-Yi Wu 6efe23923c support notification queue and worker
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-14 20:34:23 +08:00
Bo-Yi Wu 74e83d8726 rename to gorush
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-13 15:22:04 +08:00
Bo-Yi Wu d87aed23de fix golint error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-13 14:59:28 +08:00
Bo-Yi Wu dab1d73149 [ci skip] update readme.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-13 11:43:07 +08:00
Bo-Yi Wu 9bc2df6baa replace Extend with data field.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-13 11:15:24 +08:00
Bo-Yi Wu 08339e36d7 Enhance document and android payload
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-13 10:06:21 +08:00
Bo-Yi Wu 9ec678cca1 fix #44 Support Zero downtime restarts for go servers
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-12 15:04:25 +08:00
Bo-Yi Wu 784732b1b6 fix testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-11 21:32:40 +08:00
Bo-Yi Wu d12a27c9d9 bump 1.0.0 and add status screenshot.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-11 15:13:13 +08:00
Bo-Yi Wu f9d5b91b6c remove log message.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-11 14:54:37 +08:00
Bo-Yi Wu d4df55dfd6 fix #39 support command line to send notification.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-10 16:00:17 +08:00
Bo-Yi Wu f438873e51 fix typo.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-10 15:15:54 +08:00
Bo-Yi Wu 32507de908 fix #37 support number of notifications
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-10 13:04:32 +08:00
Bo-Yi Wu c61aeeec7f fix server testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-10 12:02:44 +08:00
Bo-Yi Wu bbfc058d05 support multiple notification request.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-10 11:36:49 +08:00
Bo-Yi Wu 86002dd4be testing string format of log.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-09 14:16:36 +08:00
Bo-Yi Wu 09a90e28fa fix #32 support overwrite android api key from post field.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-09 14:06:03 +08:00
Bo-Yi Wu 0bd6840f28 fix #31 support iOS expiration field
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-09 12:15:39 +08:00
Bo-Yi Wu 9c7aef4533 update code format.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-09 10:26:55 +08:00
Bo-Yi Wu a6f0de8029 remove debug message.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-08 19:34:18 +08:00
Bo-Yi Wu b71b427786 update testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-04-08 19:31:47 +08:00