Commit Graph

179 Commits

Author SHA1 Message Date
Bo-Yi Wu 230cfb23fa
feat: Add ThreadID for apns (#326) 2018-01-05 17:08:43 +08:00
Bo-Yi Wu bd6a6f7eba
Add CollapseID for ios notification. (#308)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-15 10:12:09 -06:00
Bo-Yi Wu e99692717c support custom url for health URI. (#302)
* support custom url for health URI.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix readme

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-25 21:19:58 -05:00
Bo-Yi Wu 313d74c927 Support get different mode of apns client in request for iOS app (#301)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-25 09:51:33 -05:00
Bo-Yi Wu c06e819e08 Support new Apple Token Based Authentication (JWT) (#300)
* Support new Apple Token Based Authentication (JWT)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-25 03:49:23 -05:00
Bo-Yi Wu 461a57ec9a support Device Group HTTP POST Request (#299)
* support Device Group HTTP POST Request

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix vendor

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* check error exist

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-24 21:37:53 -05:00
Bo-Yi Wu 115ee18560 Send messages to topics for android (#296)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-24 04:00:08 -05:00
Bo-Yi Wu f3480d2dd8 Support global ENV setting. (#293)
* Support global ENV setting.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* add viper package

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix typo

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix testing.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix testing.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-22 22:06:30 -05:00
Bo-Yi Wu 6ec814c4e0 replace http status
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-06 10:45:56 +08:00
JieJhih 01d545a408 Change Request.Header.Get to GetHeader function (#290)
* Change Request.Header.Get to GetHeader function

* update gin version

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update gin version

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update gin version

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-03 08:21:49 -05:00
Bo-Yi Wu f960f942f2 add version handler (#287)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-09-26 11:25:41 +08:00
Bo-Yi Wu ffd55152e5 add healthz check (#286)
* add healthz check

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* add testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-09-26 11:10:51 +08:00
Bo-Yi Wu e070248a11 fix lint error for gorush folder. (#275)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-08-23 21:46:00 -05:00
Bo-Yi Wu 2bcc17de51 check response header. (#266)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-08-06 09:53:38 +08:00
Simone Basso a714d03e2c feature(server): allow to bind specific addresses (#263)
The main use case for ooniprobe is to bind 127.0.0.1 only.
2017-07-31 16:31:07 +08:00
Bo-Yi Wu 00ff0248a2 feat(config): enable or disable httpd server. (#262) 2017-07-27 11:19:36 +08:00
Bo-Yi Wu 04b97019c8 add init func for testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-26 09:14:18 +08:00
Bo-Yi Wu f7168cfc9a refactor(testing): add ios testing file. (#259)
* refactor(testing): add ios testing file.

* initial workers.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-25 21:05:27 +08:00
Bo-Yi Wu 430de17755 refactor(andorid): initial client. (#258)
* refactor(andorid): initial client.
2017-07-25 16:41:30 +08:00
Bo-Yi Wu 2e3cc8e281 fix: check return value (#256)
* fix: check return value

* fix testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-24 21:41:21 +08:00
Bo-Yi Wu a64fae7de7 refactor: send notification. 2017-07-24 21:17:11 +08:00
Bo-Yi Wu 41a8a609be feat(config): add grpc config. (#255) 2017-07-24 18:58:30 +08:00
Bo-Yi Wu 9a52f8f2b5 feat(grpc): initial grpc server. (#253)
* feat(grpc): initial grpc server.

* refactor(vendor): add missing vendor.

* fix testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-24 15:06:23 +08:00
Bo-Yi Wu 460b74d8a6 refactor(notification): separate ios and android (#250) 2017-07-16 22:22:48 -05:00
Bo-Yi Wu ecd0aa8ed2
add github.com/sirupsen/logrus
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-25 02:23:24 +08:00
Bo-Yi Wu 7fb51220c1
refactor initial variable
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-25 01:55:07 +08:00
Bo-Yi Wu 16c3f5c46c refactor: update status init func (#241) 2017-06-24 09:47:35 -05:00
Bo-Yi Wu 8dcc680434 move storage interface to storage folder. (#240)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-23 23:09:45 -05:00
Bo-Yi Wu 14dc899b02 feat: check unused package (#232)
* feat: check unused package

update edganiukov/fcm to appleboy/go-fcm

* update readme

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update comment

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-01 02:52:01 -05:00
Bo-Yi Wu 77bce18c9f feat: upgrade gcm to fcm (#231)
https://github.com/edganiukov/fcm

fix #230
2017-05-31 22:56:10 -05:00
Bo-Yi Wu 6510427a14 refactor: upgrade drone to 0.6 (#219)
* refactor: upgrade drone to 0.6

* fix path.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix path.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix redis host.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-04 11:09:07 +08:00
Bo-Yi Wu 0c9aad538c feat: get error logs from fail notifications. (#213) 2017-04-10 11:46:48 +08:00
Bo-Yi Wu b6997ea792 feat: support sync mode for http response. (#208)
* feat: support sync mode for http response.

* fix: update readme.

* fix: check wg exist.

* fix: testing sync mode.
2017-04-06 15:00:49 +08:00
Bo-Yi Wu 04caa04899 fix: check certificate file exist. (#209)
* fix: check certificate file exist.

* fix: certificate key path error
2017-04-06 10:52:57 +08:00
Bo-Yi Wu 97eae1fab4 feat: support Automatically install TLS certificates from Let's Encrypt. (#205)
* feat: support Automatically install TLS certificates from Let's Encrypt.

* refactor: update tls server.

* fix: missing tls package.

* fix: drop 1.6.x support

* docs: update readme.

* fix: listen tcp :443: bind: permission denied
2017-04-05 12:03:43 +08:00
Bo-Yi Wu 5b2b3695e5 refactor: support AbortWithStatusJSON (#200) 2017-03-29 09:21:31 +08:00
Ryan Guest 4b6ac6d8d2 [ci skip] fix: typo in code comments (#198) 2017-03-26 20:33:33 +08:00
Bo-Yi Wu 04ff032214 refactor: update build flag for windows. (#197) 2017-03-15 21:47:21 -05:00
Bo-Yi Wu c67af96a05 refactor: update version name in header. (#188) 2017-02-21 14:15:14 +08:00
Bo-Yi Wu 3f4485edf7 feat: Add support for the mutable-content flag (#179) 2017-02-10 15:03:49 +08:00
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