-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpush.go
More file actions
20 lines (16 loc) · 701 Bytes
/
push.go
File metadata and controls
20 lines (16 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package pushgo
import (
"github.com/omerkirk/pushgo/android"
"github.com/omerkirk/pushgo/core"
"github.com/omerkirk/pushgo/huawei"
"github.com/omerkirk/pushgo/ios"
)
func NewGCM(apiKey string, senderCount, retryCount int, isProduction bool) core.Pusher {
return android.New(apiKey, senderCount, retryCount, isProduction)
}
func NewHuawei(appID int, appSecret string, senderCount, retryCount int, isProduction bool) core.Pusher {
return huawei.New(appID, appSecret, senderCount, retryCount, isProduction)
}
func NewAPNS(authFile, teamID, keyID, bundleID string, senderCount int, isProduction bool) core.Pusher {
return ios.New(authFile, teamID, keyID, bundleID, senderCount, isProduction)
}