Commit Graph

23 Commits

Author SHA1 Message Date
Maxim Shilov 300fdc2f22
Enable sending notifications via gRPC to FCM topic (#531) 2020-07-09 15:46:52 +08:00
Bo-Yi Wu 7dbb5c98e7
refactor(worker): remove context from notification structure (#503) 2020-04-25 15:23:43 +08:00
Romanenko Alexey 983aeeb33d
#446 fix context (#484) 2020-03-14 00:06:44 +08:00
Bo-Yi Wu 44bf37941b
chore(grpc): add image field (#485) 2020-03-14 00:00:03 +08:00
Slava Romanov d06e4a2337
solve https://github.com/appleboy/gorush/issues/476 (#481)
* solve https://github.com/appleboy/gorush/issues/476

* add logging to start gRPC server (tcp listener)
change grpc.Server.Stop -> grpc.Server.GracefulStop
add grpc server_test
remove async functions from rpc/server.go

* add logging to err in rpc/server.go
2020-03-10 21:09:03 +08:00
Bo-Yi Wu c379630c29
chore(graceful): support custom timeout value (#466)
fixed: https://github.com/appleboy/gorush/issues/465
2020-02-05 23:23:16 +08:00
Bo-Yi Wu 2113dfc84e
chore(rpc): graceful shutdown for RPC server (#463)
graceful shutdown for grpc service.
2020-02-04 22:42:06 +08:00
Bo-Yi Wu 2d2a8a0110
feat(worker): support graceful shutdown (#459)
* feat(worker): support graceful shutdown

notifications workers and queue have been sent to APNs/FCM before shutdown a push notification.

send buffered channel to signal.Notify to avoid blocking

see: golang/lint#175

fixed: https://github.com/appleboy/gorush/issues/441

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-02-04 13:27:27 +08:00
H 201413967c Add missing GRPC data field (#412)
* feat(grpc): add support for data field in request body

* docs: update Readme with embedmd
2019-05-21 14:10:32 +08:00
Bo-Yi Wu e96811ae63
chore: return success for rpc response. (#350) 2018-04-11 10:14:28 +08:00
Bo-Yi Wu b0260af17b
feat(grcp): support MutableContent for ios (#332) 2018-01-16 11:26:45 +08:00
Bo-Yi Wu 4c203c9829
feat(grpc): support ThreadID and ContentAvailable (#328) 2018-01-10 09:36:27 +08:00
Bo-Yi Wu ffd78ffaec
feat(grpc): add alert other fields. (#327) 2018-01-06 15:03:21 +08:00
Bo-Yi Wu df45f85a1c
chore(grpc): add sound field. (#325) 2018-01-04 11:31:03 +08:00
Bo-Yi Wu 651a2b76db
fix(grpc): check alert exist. (#324)
* fix(grpc): check alert exist.

* fix: update readme.
2018-01-03 17:08:28 +08:00
Bo-Yi Wu 8faae762fe
feat(grpc): support category, alert and badge for ios. (#321) 2018-01-02 15:53:15 +08:00
Bo-Yi Wu b7b9cd22dd remove unused const
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-14 16:56:57 +08:00
Bo-Yi Wu 25bfe420b0
Add grpc health check. (#304)
* Add grpc health check.

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

* fix missing package.

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

* fix readme..

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

* fix vet

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-12 08:44:33 -06:00
Bo-Yi Wu 6d29e638b4 change grpc port to 9000 (#291)
* change grpc port to 9000

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

* change grpc port to 9000

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-18 20:24:47 -05:00
Bo-Yi Wu fadf9d280d goroutines
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-07-24 21:46:42 +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