zechao zheng

Results 8 issues of zechao zheng

When I use the native protobuf, i use the `value.AsInterface()` to convert Value to Interface. But i don't find this method in gogopb.

## mosn云边互联 在边缘计算场景中,边缘节点常位于本地专有网络中,这虽然保证了边缘节点的安全,但云端的节点无法主动访问边缘节点,常用解法是在云端和边缘节点之间建立方向通道。 ![image-20210425205630629](https://raw.githubusercontent.com/CodingSinger/res/master/uPic/image-20210425205630629.png) 云端节点部署MOSN作为Server进行转发请求到边缘节点(后文统称为server),边缘端部署MOSN Client作为agent,后文统称为agent。 ### 基本流程 1. agent在启动时主动连接远端的server。 2. server listener接受到连接时,将该连接加入到对应cluster。 3. 云侧请求统一经过server出口,根据对应cluster拿到反向连接,进行转发数据。 ### 细节 agent启动时扫描静态配置文件中所有cluster文件,如果有标志需要反向通道的cluster,则立即主动建立连接而非懒加载模式。增加`ConnectAtStartup`字段表示加载cluster时即创建对应的连接。 ``` type Cluster struct { ... ConnectAtStartup bool } ``` server侧通过配置不同的listener来接受agent连接和云端fontend的连接, 接受到agent连接时,通过`ReadFilter`的`OnNewConnection`方法将连接加入到对应的cluster中的连接池map中。...

kind/feature

#1 and https://github.com/alibaba/Sentinel/issues/1114

根据官方的例子项目 https://github.com/micro/examples/tree/master/greeter 先`go run main.go --registry=mdns`启动server,日志如下: ``` 2019-11-11 09:30:00.912112 I | Server [grpc] Listening on [::]:53358 2019-11-11 09:30:00.912338 I | Broker [http] Connected to [::]:53359 2019-11-11 09:30:00.913182 I | Registering...