Files
v2rayA/service/model/nodeData/nodeData.go
T
2019-11-19 07:31:50 +08:00

21 lines
424 B
Go

package nodeData
import (
"V2RayA/model/vmessInfo"
"V2RayA/persistence/configure"
)
/*
对VmessInfo更高层次的抽象,加入了对应的config配置
*/
type NodeData struct {
VmessInfo vmessInfo.VmessInfo `json:"vmessInfo"`
Config string `json:"config"`
}
func (nd *NodeData) ToTouchServerRaw() (tsr *configure.ServerRaw) {
tsr = new(configure.ServerRaw)
tsr.VmessInfo = nd.VmessInfo
return
}