binary

package
v4.0.0-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 14 Imported by: 0

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 NewManager

func NewManager(cacheDir string) *Manager

NewManager 创建二进制文件管理器

func (*Manager) EnsureBinary

func (m *Manager) EnsureBinary(info *BinaryInfo) (string, error)

EnsureBinary 确保二进制文件存在,如果不存在则下载

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL