mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
21 lines
420 B
Go
21 lines
420 B
Go
package nodeData
|
|
|
|
import (
|
|
"v2rayA/core/vmessInfo"
|
|
"v2rayA/persistence/configure"
|
|
)
|
|
|
|
/*
|
|
对VmessInfo更高层次的抽象,加入了对应的config配置
|
|
*/
|
|
type NodeData struct {
|
|
VmessInfo vmessInfo.VmessInfo `json:"vmessInfo"`
|
|
//Config string `json:"config"`
|
|
}
|
|
|
|
func (nd *NodeData) ToServerRaw() (tsr *configure.ServerRaw) {
|
|
tsr = new(configure.ServerRaw)
|
|
tsr.VmessInfo = nd.VmessInfo
|
|
return
|
|
}
|