重构advLayer代码,完全使用通用接口.

This commit is contained in:
e1732a364fed
2022-04-27 19:56:13 +08:00
parent 2ea170e365
commit 4e700d7475
18 changed files with 400 additions and 460 deletions

View File

@@ -30,6 +30,8 @@ type CommonConf struct {
AdvancedLayer string `toml:"advancedLayer"` //高级层; 可不填或者为ws或者为grpc
IsEarly bool `toml:"early"` //是否启用 0-rtt
Path string `toml:"path"` //ws 的path 或 grpc的 serviceName。为了简便我们在同一位置给出.
Extra map[string]any `toml:"extra"` //用于包含任意其它数据.虽然本包自己定义的协议肯定都是已知的,但是如果其他人使用了本包的话,那就有可能添加一些 新协议 特定的数据.