#huawei #fcm #platform #push #service #body #apns

hi-push

第三方推送服务集成库。包括 apns、fcm、小米、华为、企业微信和电子邮件。

1 个不稳定版本

0.0.1 2022年10月19日

#6#huawei

MIT 许可证

180KB
4K SLoC

特性

平台 QPS MAX_TOKEN InvalidToken 正文
Apns
Fcm 500
小米 500 1000
华为 6000 1000 4kb
电子邮件
企业微信 1000
AgoraRtm

架构

平台: fcm, apns, email, wecom, huawei, xiaomi

数据库: mysql, mongo

服务

接口: http, grpc, graphql

 ---------------------------------------------------------------------
| interface |  
|       -------------------------         
|       | grpc | http | graphql |
|       -------------------------
|
|---------------------------------------------------------------------
| service | App{ db: MysqlOrMongo, svc: lib::Service}
|        ------------------------------
|       | register_token| push_message | 
|        ------------------------------
|----------------------------------------------------------------------
| db |  mysql | mongodb |
|       ---------------------------------------------------------
|       | insert_token | fetch_tokens | fetch_chans | fetch_app |
|       ---------------------------------------------------------
|-----------------------------------------------------------------------
| lib | Service: { pushers:Vec<Pusher> }
|       --------------------------------------------------
|       | register_client | remove_client | push_message |
|       --------------------------------------------------
|
|-----------------------------------------------------------------------
| platform |
|       ------------------------------------------------------
|       | fcm | apns | email | wecom | xiaomi | huawei | rtm |
|       ------------------------------------------------------
|
|

 ------------------------------------------------------------------------

|            |              |                 |             |        |       |           |
| ---------- | ------------ | --------------- | ----------- | ------ | ----- | --------- |
| http       | grpc         | graphql         |
| service    |              | init            |
| db_service | insert_token | delete_token    | insert_chan |
| lib        | push_message | register_client |
| fcm        | apns         | email           | xiaomi      | huawei | wecom | agora-rtm |


依赖

~14–37MB
~658K SLoC