Commit Graph

69 Commits

Author SHA1 Message Date
Bo-Yi.Wu fe402a578a fix(lint): golangci-lint warning.
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-12-17 22:59:18 +08:00
Bo-Yi Wu 6fa9769a31
chore(gRPC): a new unary server interceptor for panic recovery (#703)
fix #691
2022-12-17 22:34:04 +08:00
Snyk bot 673f552d29
[Snyk] Upgrade google-protobuf from 3.21.1 to 3.21.2 (#700)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-12-17 21:18:10 +08:00
Bo-Yi Wu 1d839f56c5
chore(gRPC): add PushType and Development (#702)
fix #697
2022-12-17 21:17:41 +08:00
Snyk bot ebe3723319
[Snyk] Upgrade google-protobuf from 3.21.0 to 3.21.1 (#694)
Snyk has created this PR to upgrade google-protobuf from 3.21.0 to 3.21.1.

See this package in npm:
https://www.npmjs.com/package/google-protobuf

See this project in Snyk:
https://app.snyk.io/org/appleboy/project/fcfc2ba6-1b67-4528-bc1d-2f9febf86663?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-12-03 22:19:46 +08:00
Bo-Yi Wu 8b4424c518 refactor(gRPC): update go proto file 2022-11-09 14:18:51 +08:00
Bo-Yi Wu e13a05bc08 refactor(rcp): move health interface to core package 2022-11-09 14:07:51 +08:00
Snyk bot 7f4a6670a9
[Snyk] Upgrade google-protobuf from 3.20.1 to 3.21.0 (#687) 2022-08-28 07:34:41 +08:00
Snyk bot 754e50d482
[Snyk] Upgrade google-protobuf from 3.20.0 to 3.20.1 (#680)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-06-30 21:42:48 +08:00
Bo-Yi Wu 372c8f4523
[Snyk] Upgrade async from 3.2.3 to 3.2.4 (#682)
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2022-06-30 21:42:21 +08:00
Juan Vallés 3a593aacb1
fix: Serialise nested protobuf structs correctly (#674) 2022-05-05 21:13:18 +08:00
Bo-Yi Wu 8705803764
fix: upgrade google-protobuf from 3.19.4 to 3.20.0 (#670)
Snyk has created this PR to upgrade google-protobuf from 3.19.4 to 3.20.0.

See this package in npm:
https://www.npmjs.com/package/google-protobuf

See this project in Snyk:
https://app.snyk.io/org/appleboy/project/fcfc2ba6-1b67-4528-bc1d-2f9febf86663?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2022-04-23 16:51:48 +08:00
Romanenko Aleksei 5cced6f9fa
fix #418: use struct.asMap() for data field (#638)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2022-04-17 11:17:14 +08:00
Snyk bot 87af9bf529
[Snyk] Security upgrade minimist from 1.2.5 to 1.2.6 (#666) 2022-04-15 23:01:07 +08:00
Snyk bot b3e4084bc6
[Snyk] Upgrade google-protobuf from 3.10.0 to 3.19.4 (#662) 2022-02-19 22:31:04 +08:00
Snyk bot 9921349235
[Snyk] Upgrade async from 3.1.0 to 3.2.3 (#658) 2022-02-05 22:17:56 +08:00
Snyk bot 90e3bb204e
[Snyk] Upgrade grpc from 1.24.9 to 1.24.11 (#659) 2022-02-05 22:17:00 +08:00
rsmnarts eac2553b25
add ID to grpc (#641)
Co-authored-by: rsmnarts <risman.zainuri@bluebirdgroup.com>
2021-11-03 22:14:46 +08:00
Romanenko Aleksei 9d47494585
fix #560: fix proto file and Makefile to generate pb (go, js) (#636) 2021-10-25 09:34:46 +08:00
dependabot[bot] 61af86605e
chore(deps): Bump tar from 6.1.6 to 6.1.11 in /rpc/example/node (#630)
Bumps [tar](https://github.com/npm/node-tar) from 6.1.6 to 6.1.11.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v6.1.6...v6.1.11)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-01 22:23:33 +08:00
dependabot[bot] b219e0adc7
chore(deps): Bump tar from 6.1.0 to 6.1.6 in /rpc/example/node (#625)
Bumps [tar](https://github.com/npm/node-tar) from 6.1.0 to 6.1.6.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v6.1.0...v6.1.6)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-05 11:48:44 +08:00
Bo-Yi Wu ea71e99f2d
chore(lint): fix some condition. (#624) 2021-08-04 09:00:04 +08:00
Bo-Yi Wu 0a8d801380
fix: error from golangci-lint tool (#623) 2021-08-03 14:44:00 +08:00
Bo-Yi Wu 349c0c8c1d
fix: Function params involve heavy amount of copying (#622) 2021-08-02 14:07:30 +08:00
Bo-Yi Wu 8d03ac5f1e
refactor: remove config from notification struct. (#617)
* refactor: remove config from notification struct.

* chore: update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-08-01 19:48:57 +08:00
Bo-Yi Wu d9947ea44d
chore: rename gorush to notify package (#609)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-24 01:56:33 +08:00
Bo-Yi Wu 2d01f8b854
chore: init log package (#606)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-20 21:16:53 +08:00
Bo-Yi Wu 380162a38a
chore(queue): add queue message interface (#602)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-18 01:58:46 +08:00
Bo-Yi Wu 73ff554b19
Only initial MaxConcurrentIOSPushes once. (#591) 2021-07-16 16:30:01 +08:00
Bo-Yi Wu ab8b1991ab
chore: support single queue and multiple worker (#589) 2021-07-16 12:10:34 +08:00
Bo-Yi Wu 35e1998cc5
refactor: create logx package (#584) 2021-07-13 16:32:39 +08:00
dependabot[bot] f0a2631ae9
chore(deps): bump grpc from 1.24.1 to 1.24.9 in /rpc/example/node (#573)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-11 20:38:53 +08:00
dependabot[bot] 937bca3f37
chore(deps): bump lodash from 4.17.19 to 4.17.21 in /rpc/example/node (#570)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-09 10:01:01 +08:00
Bo-Yi Wu d77e7fe4f2 chore(style): fix format by gofumpt 2021-01-23 09:39:06 +08:00
dependabot[bot] 6bfab294cd
chore(deps): bump lodash from 4.17.15 to 4.17.19 in /rpc/example/node (#541)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-27 13:20:10 +08:00
Bo-Yi Wu bb18241ce9
fix(push): goroutine leak (#540) 2020-09-27 12:45:58 +08:00
Lysak Vladislav dc4e210bec chore(grpc): support Priority tag
fix: #492
close: https://github.com/appleboy/gorush/pull/537
2020-09-27 12:11:35 +08:00
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
Bo-Yi Wu ca65d8ad2a chore(node): upgrade minimist to 1.2.2 or later 2020-03-21 12:29:55 +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
Bo-Yi Wu 38f11f0592 chore: fix import path. 2020-03-10 21:10:18 +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
Bo-Yi Wu 3bfcd1e822
chore: replace yarn with npm (#434)
* chore: replace yarn with npm

* chore: update node.js example
2019-10-27 12:13:40 +08:00
dependabot[bot] a4b41daf2d chore(deps): bump tar from 2.2.1 to 2.2.2 in /rpc/example/node (#413)
Bumps [tar](https://github.com/npm/node-tar) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Commits](https://github.com/npm/node-tar/compare/v2.2.1...v2.2.2)
2019-06-06 23:17:04 +08:00
Bo-Yi Wu adcd6fed29 docs: update readme.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-05-21 14:33:35 +08:00