- 引入 LogicalConn/TransportConn 分层,ClientConn 保留兼容适配层 - 新增 Stream、Bulk、RecordStream 三条数据面能力及对应控制路径 - 完成 transfer/file 传输内核与状态快照、诊断能力 - 补齐 reconnect、inbound dispatcher、modern psk 等基础模块 - 增加大规模回归、并发与基准测试覆盖 - 更新依赖库
32 lines
575 B
Go
32 lines
575 B
Go
package notify
|
|
|
|
import "b612.me/notify/internal/codec"
|
|
|
|
func Register(data interface{}) {
|
|
codec.Register(data)
|
|
}
|
|
|
|
func RegisterName(name string, data interface{}) {
|
|
codec.RegisterName(name, data)
|
|
}
|
|
|
|
func RegisterAll(data []interface{}) {
|
|
codec.RegisterAll(data)
|
|
}
|
|
|
|
func RegisterNames(data map[string]interface{}) {
|
|
codec.RegisterNames(data)
|
|
}
|
|
|
|
func encode(src interface{}) ([]byte, error) {
|
|
return codec.Encode(src)
|
|
}
|
|
|
|
func Encode(src interface{}) ([]byte, error) {
|
|
return codec.Encode(src)
|
|
}
|
|
|
|
func Decode(src []byte) (interface{}, error) {
|
|
return codec.Decode(src)
|
|
}
|