Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // XrayInfo Xray 二进制信息 XrayInfo = BinaryInfo{ Name: "xray", Repo: "XTLS/Xray-core", BinaryName: "xray", } // MihomoInfo Mihomo 二进制信息 MihomoInfo = BinaryInfo{ Name: "mihomo", Repo: "MetaCubeX/mihomo", BinaryName: "mihomo", } )
Functions ¶
This section is empty.
Types ¶
type BinaryInfo ¶
type BinaryInfo struct {
Name string
Repo string
BinaryName string
Version string
DownloadURL string
}
BinaryInfo 二进制文件信息
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager 二进制文件管理器
func (*Manager) EnsureBinary ¶
func (m *Manager) EnsureBinary(info *BinaryInfo) (string, error)
EnsureBinary 确保二进制文件存在,如果不存在则下载
Click to show internal directories.
Click to hide internal directories.