gorush/gorush
Iskander (Alex) Sharipov d275ddbccb gorush: do less copying in queueNotification (#370)
The PushNotification object is quite big (772 bytes on AMD64),
so avoid doing too many copying without a need.

Collect pointers and do copying only when sending into a channel.

Found using https://go-critic.github.io/overview#rangeValCopy-ref

Linter output:
```
$GOPATH/src/github.com/appleboy/gorush/gorush/worker.go:38:2: rangeValCopy: each iteration copies 772 bytes (consider pointers or indexing)
$GOPATH/src/github.com/appleboy/gorush/gorush/worker.go:53:2: rangeValCopy: each iteration copies 772 bytes (consider pointers or indexing)
```
2018-09-17 14:55:23 +08:00
..
log update unit testing. 2016-04-07 14:42:38 +08:00
const.go add version from flag 2016-05-09 14:48:07 +08:00
global.go Support new Apple Token Based Authentication (JWT) (#300) 2017-10-25 03:49:23 -05:00
log.go Change Request.Header.Get to GetHeader function (#290) 2017-10-03 08:21:49 -05:00
log_test.go Support global ENV setting. (#293) 2017-10-22 22:06:30 -05:00
metrics.go fix: [ci skip] fix docs. 2017-01-19 22:21:53 +08:00
notification.go feat(ios): Support iOS 12 Critical Alerts (#367) 2018-08-28 11:02:13 +08:00
notification_apns.go feat(ios): Support iOS 12 Critical Alerts (#367) 2018-08-28 11:02:13 +08:00
notification_apns_test.go feat(ios): Support iOS 12 Critical Alerts (#367) 2018-08-28 11:02:13 +08:00
notification_fcm.go feat(ios): Support iOS 12 Critical Alerts (#367) 2018-08-28 11:02:13 +08:00
notification_fcm_test.go Send messages to topics for android (#296) 2017-10-24 04:00:08 -05:00
notification_test.go support Device Group HTTP POST Request (#299) 2017-10-24 21:37:53 -05:00
server.go fix(debug): show error message. (#356) 2018-05-22 10:19:13 +08:00
server_lambda.go feat(aws): support lambda (#334) 2018-01-23 16:34:34 +08:00
server_test.go Added mutable_content option for Firebase (#364) 2018-08-15 11:47:15 +08:00
server_unix.go feat(https): support load certificate from base64 input. (#337) 2018-02-18 17:43:34 +08:00
server_windows.go feat(aws): support lambda (#334) 2018-01-23 16:34:34 +08:00
status.go feat: Add badgerDB support. (#353) 2018-04-16 17:26:15 +08:00
status_test.go feat: Add badgerDB support. (#353) 2018-04-16 17:26:15 +08:00
version.go fix: typo in header. 2018-03-22 20:41:00 +08:00
worker.go gorush: do less copying in queueNotification (#370) 2018-09-17 14:55:23 +08:00