Commit Graph

79 Commits

Author SHA1 Message Date
Bo-Yi Wu 3f411ebe89
chore(queue): support Redis pub/sub (#652) 2022-01-01 23:04:13 +08:00
Bo-Yi Wu 18016db289
chore(queue): upgrade queue to v0.0.7 version (#629)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-08-22 22:04:50 +08:00
Bo-Yi Wu 70744b58cd
chore: replace appleboy/queue with new repo (#628)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-08-15 16:12:08 +08:00
Bo-Yi Wu 226abc69c5 chore: fix lint
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-08-14 22:57:16 +08:00
Bo-Yi Wu 24cf872b31
chore(logx): add custom logger in queue (#627) 2021-08-11 11:13:29 +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 c51b4b2b65
chore(queue): Support NATS as backend (#618)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-08-01 21:06:47 +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 f4fc2a5e7c chore: remove redunt code.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-25 10:24:25 +08:00
Bo-Yi Wu e08e4c09ca
chore(NSQ): remove nsq package and update run func (#614)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-25 08:35:49 +08:00
Bo-Yi Wu 0b0f47e4f9 chore(queue): Add NSQ Parameter.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-24 23:01:31 +08:00
Bo-Yi Wu 7b16a4db98
chore: move NSQ and simple package to appleboy/queue (#613)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-24 22:33:44 +08:00
Bo-Yi Wu 14f19fcb20
chore: move queue to appleboy/queue (#612)
* chore: move queue to appleboy/queue

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-24 17:18:35 +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 ce6e87639a
chore: support custom parameter in queue (#608)
* chore: support custom parameter in queue

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-24 01:29:47 +08:00
Bo-Yi Wu ed25b0f42a
chore(queue): support custom run func (#603)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-18 09:03:57 +08:00
Bo-Yi Wu 2e2dd9b8d6
chore(queue): support NSQ as backend. (#600) 2021-07-17 20:14:19 +08:00
Bo-Yi Wu 4349a17017
chore(queue): support option setting (#593) 2021-07-17 06:56:42 +08:00
Bo-Yi Wu 41c61f11c4
chore: update worker interface (#592)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-16 19:26:19 +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 ca7dcbd8dd
chore: create router package (#586) 2021-07-14 02:16:09 +08:00
Bo-Yi Wu 2cd46ad690
chore: Add metric and status package. (#585) 2021-07-13 23:58:47 +08:00
Bo-Yi Wu 35e1998cc5
refactor: create logx package (#584) 2021-07-13 16:32:39 +08:00
Bo-Yi Wu 2271527d81
fix: redefined -v flag (#580)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-07-11 20:26:22 +08:00
kerem da4ca22d70
chore: fix Enabled config for iOS, Android and Huawei (#577)
Co-authored-by: Viktor Radchenko <1641795+vikmeup@users.noreply.github.com>
2021-06-22 00:17:57 +08:00
kerem 9c51cbc989
make Huawei configs compatible with HMS Core 4.0 (#561)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-03-28 22:13:02 +08:00
Bo-Yi Wu d77e7fe4f2 chore(style): fix format by gofumpt 2021-01-23 09:39:06 +08:00
M. Salih Karakaşlı 3918fab908
Add Huawei Mobile Services Support to Gorush (#523)
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-09-04 11:01:21 +08:00
Romanenko Alexey 6bad4797b4
#510 add key id and team id ios cli flags (#511) 2020-05-18 22:32:50 +08:00
Emmet McPoland 685a87c930
Concurrent ios pushes (#497)
* Added the ability to concurrently call.push. Linter was complaining about "loop variable token captured by", need to determine if its a legitiment issue, as the lint message has now disappeared

* resolved "loop variable token captured by func literal" issue

* Ran make_fmt

* Moved max_concurrent_pushes to iOS

* Moved from limitgroup to sizedwaitgroup

* Removed SizedWaitGroup. Using client pool of 1 and buffered channels

* Fill client pool with the same client

* MaxConcurrentPushes is now applied across all running pushes

* Ran make fmt

* Corrected TestPushToIOS test

* Update README.md

Co-Authored-By: Yaroslav "Zorg" Zborovsky <yaronius@users.noreply.github.com>

* Added comment to config in all copies for max_concurrent_pushes

* Updated TestPushToIOS to be driven from config

Co-authored-by: Yaroslav "Zorg" Zborovsky <yaronius@users.noreply.github.com>
2020-04-23 21:02:53 +08:00
Bo-Yi Wu c2136fffc7
chore(storage): storage performance issues (#500)
* chore(storage): storage performance issues

1. close storage connection before shutdown the service
2. update windows image

https://github.com/appleboy/gorush/issues/393

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-04-23 15:39:24 +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 bcd0e70252
feat(server): support graceful shutdown (#461)
* feat(server): support graceful shutdown

for http server

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-02-04 17:10:12 +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 850509e77c
chore(healthy): disable proxy in healthy check (#457)
fixed: https://github.com/appleboy/gorush/issues/456

Don’t use Go’s default HTTP client (in production)

ref: https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779
2020-01-25 10:16:41 +08:00
Keisuke Emi 1edfa9f532 Support HTTP proxy for APNs (#445) 2019-12-08 07:30:24 +08:00
Amin 42d406b85f Fix typo in print error message (#429) 2019-10-16 15:01:58 +08:00
Iskander (Alex) Sharipov 313544bde6 remove unnecessary wrapping lambda, use function value directly (#372)
Found using https://go-critic.github.io/overview#unlambda-ref
2018-09-14 08:50:11 +08:00
Iskander (Alex) Sharipov 82c3ceb70d remove dead code after log.Fatal call (#371)
Found using https://go-critic.github.io/overview#deadCodeAfterLogFatal-ref
2018-09-14 08:42:43 +08:00
Bo-Yi Wu b3bdd9b79e
feat(docker): test a container to check that it is still working (#346) 2018-03-17 23:07:38 +08: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 e2d4d9db18 move main to top folder.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-23 07:42:38 +08:00
Bo-Yi Wu 77ea50f062 move main.go to cmd folder. (#292)
* move main.go to cmd folder.

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

* move docs.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-18 20:57:51 -05:00
JieJhih df987d5e53 Fix annotation. (#289) 2017-09-30 23:06:12 +08:00
kazhuravlev 5d67fc7d17 Remove unused function (#268) 2017-08-15 12:33:26 +08:00
Bo-Yi Wu ced4b6e97b reorder import path.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-08-15 12:29:59 +08:00