feat(增加readme): 增加readme

增加readme
This commit is contained in:
dabenxiong
2024-04-01 16:21:28 +08:00
parent 0b76799d6b
commit 706c8eedc2
2 changed files with 34 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
# plugin-reportor
数据同步上报插件——使得m7s实例可作把内存中信息同步到其他数据库中去:目前支持reids,redis-clusters
## 插件地址
https://github.com/bigbeer1/m7sRpc
## 插件引入
```go
import (
_ "github.com/bigbeer1/m7sRpc"
)
```
## 配置
```yaml
m7srpc:
name: m7s.rpc
listenon: 0.0.0.0:8810
timeout: 30000
```
origin代表源服务器拉流地址前缀,可以由如下几种格式:
```go
type M7sRpcConfig struct {
Name string
ListenOn string
Timeout int64 `json:",default=2000"`
}
```
-1
View File
@@ -24,7 +24,6 @@ type M7sRpcConfig struct {
var plugin = InstallPlugin(&M7sRpcConfig{})
func (m M7sRpcConfig) OnEvent(event any) {
fmt.Println("6666666666")
switch event.(type) {
case FirstConfig: