{"id":42741586,"url":"https://github.com/jeffkit/goapns","last_synced_at":"2026-01-29T19:00:08.378Z","repository":{"id":17147887,"uuid":"19914579","full_name":"jeffkit/goapns","owner":"jeffkit","description":"Apple apns agent for Golang","archived":false,"fork":false,"pushed_at":"2015-05-08T02:51:57.000Z","size":280,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2023-03-11T02:01:50.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeffkit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-18T16:03:33.000Z","updated_at":"2015-05-08T02:51:57.000Z","dependencies_parsed_at":"2022-08-03T16:45:15.568Z","dependency_job_id":null,"html_url":"https://github.com/jeffkit/goapns","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"purl":"pkg:github/jeffkit/goapns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffkit%2Fgoapns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffkit%2Fgoapns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffkit%2Fgoapns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffkit%2Fgoapns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffkit","download_url":"https://codeload.github.com/jeffkit/goapns/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffkit%2Fgoapns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28882592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T16:41:59.663Z","status":"ssl_error","status_checked_at":"2026-01-29T16:39:39.641Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-29T19:00:05.933Z","updated_at":"2026-01-29T19:00:08.313Z","avatar_url":"https://github.com/jeffkit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## 安装依赖\n\n安装redis驱动：\n```\ngo get gopkg.in/redis.v2\n```\n\n安装levelDB：\n```\nwget xxxx/leveldb-1.15.0.tar.gz\ntar -xvf leveldb-1.15.0.tar.gz\ncd leveldb-1.15.0\nmake\n```\n\n安装snappy\n```\nudo apt-get install libsnappy-dev\n```\n\n安装levigo\n```\nCGO_CFLAGS=\"-I/home/jeff/leveldb-1.15.0/include -I/usr/include\" CGO_LDFLAGS=\"-L/home/jeff/leveldb-1.15.0/lib -L/usr/lib -lsnappy\" go get github.com/jmhodges/levigo\n```\n\n## 配置\n\n编辑goapns的配置文件：/etc/goapns.conf\n\n```\n{\n\t\"AppsDir\": \"/opt/config/apnsagent/apps\",\n\t\"AppPort\": 8899, \n\t\"ConnectionIdleSecs\": 600, \n\t\"DbPath\": \"/opt/data/goapns\",\n\t\"QueueWithRedis\": true,\n\t\"RedisPassword\": \"xxxxxxxx\",\n\t\"RedisDB\": 3\n}\n```\n\nAppsDir: 指存放推送证书的根目录。目录下存放每个应用的key及cert。目录结构约定如下：\n\n- 每个应用以bundleid为目录名命名顶层目录。\n- 每个应用均有develop及production两个子目录。分别存放sandbox及生产环境的证书及密钥。\n- 证书及密钥必须命名为cer.pem, key.pem，并且无需输入passphare即可读取。\n\n示例目录结构如下:\n\n```\n├── com.toraysoft.music\n│   ├── develop\n│   │   ├── cer.pem\n│   │   └── key.pem\n│   └── production\n│       ├── cer.pem\n│       └── key.pem\n├── com.toraysoft.vddist\n│   ├── develop\n│   │   ├── cer.pem\n│   │   └── key.pem\n│   └── production\n│       ├── cer.pem\n│       └── key.pem\n```\n\nAppPort: Goapns暴露出来的Http端口。\n\nConnectionIdleSecs：APNS连接闲置最大时长，单位为秒。如果超过该时长，则会重连。\n\nDbPath：本地LevelDB数据库存储的目录。\n\nQueueWithRedis：如果不使用HTTP接口，可以通过Redis队列给Goapns提供喂消息。\n\n## 运行Goapns\n\n安装完Goapns后，直接在命令行中运行```goapns```即可启动服务。\n\n## HTTP接口说明：\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffkit%2Fgoapns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffkit%2Fgoapns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffkit%2Fgoapns/lists"}