{"id":19703587,"url":"https://github.com/monibuca/plugin-gateway","last_synced_at":"2025-04-29T14:30:56.185Z","repository":{"id":47413671,"uuid":"254871351","full_name":"Monibuca/plugin-gateway","owner":"Monibuca","description":"控制台界面插件，可显示自己以及其他插件的UI界面，并提供HTTP的API接口访问","archived":false,"fork":false,"pushed_at":"2023-08-23T02:24:48.000Z","size":11919,"stargazers_count":22,"open_issues_count":7,"forks_count":37,"subscribers_count":1,"default_branch":"v3","last_synced_at":"2025-04-05T17:51:10.301Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Monibuca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-11T13:15:45.000Z","updated_at":"2024-01-10T09:06:52.000Z","dependencies_parsed_at":"2024-06-18T18:31:12.527Z","dependency_job_id":"acac6fe9-db29-4837-b986-d9d1363325dc","html_url":"https://github.com/Monibuca/plugin-gateway","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monibuca","download_url":"https://codeload.github.com/Monibuca/plugin-gateway/tar.gz/refs/heads/v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251518861,"owners_count":21602229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-11T21:18:21.890Z","updated_at":"2025-04-29T14:30:52.511Z","avatar_url":"https://github.com/Monibuca.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 网关插件\n\n该插件主要提供http协议访问，供其他插件公用http接口端口，并且提供一些基础的API\n\n## UI\n\n如需要ui源码，可联系微信：bosswancheng\n\n## 插件地址\n\ngithub.com/Monibuca/plugin-gateway\n\n## 插件引入\n```go\nimport (\n    _ \"github.com/Monibuca/plugin-gateway\"\n)\n```\n\n## 默认插件配置\n```toml\n[GateWay]\nListenAddr = \":8080\"\n#ListenAddrTLS = \":8082\"\n#CertFile = \"xxx.cert\"\n#KeyFile = \"xxx.key\"\n#StaticPath = \"\"\n```\n- `ListenAddr` 公共http监听端口\n- `ListenAddrTLS` 公共https监听端口\n- `CertFile` https用的证书\n- `KeyFile` https用的证书的key\n- `StaticPath` 静态资源目录，设置后可以通过访问公共http监听端口来访问这些静态资源\n\n## 自带的API接口\n\n- `/api/gateway/sysInfo` 系统信息，包含版本号（Version）和启动时间（StartTime）两个字段\n- `/api/gateway/plugins` 所有插件信息，是一个数组里面包含插件的名称（Name）、版本（Version）、README（ReadMe）、配置（Config）、热更新配置（HotConfig）\n- `/api/gateway/config` 返回原始配置文件\n- `/api/gateway/stop?stream=xxx` 终止某一个流，入参是流标识（stream）\n- `/api/gateway/h264?stream=xxx\u0026len=10` 获取一段h264的流用于调试，入参数len代表需要获取的时长单位是秒\n- `/api/gateway/getIFrame?stream=xxx` 获取一个I帧数据，包含了SPS和PPS信息\n- `/api/gateway/modifyConfig?name=xxx\u0026key=xxx\u0026value=xxx` 修改可以热更新的配置,name是插件名（插件注册时设置）","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fplugin-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonibuca%2Fplugin-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fplugin-gateway/lists"}