19 lines
364 B
Go
19 lines
364 B
Go
package android
|
|
|
|
import "gitlab.33.cn/chat/dtalk/service/offline-push/pusher"
|
|
|
|
const Name = "Android"
|
|
|
|
func init() {
|
|
pusher.Register(Name, New)
|
|
}
|
|
|
|
func New(cfg pusher.Config) pusher.IPusher {
|
|
return &androidPusher{
|
|
AppKey: cfg.AppKey,
|
|
AppMasterSecret: cfg.AppMasterSecret,
|
|
MiActivity: cfg.MiActivity,
|
|
environment: cfg.Environment,
|
|
}
|
|
}
|