api

package
v0.0.0-...-37f8b3f Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MachineURL    = "/api/machines"   // 机器列表端点
	UsersURL      = "/api/users"      // 用户列表端点
	ServiceURL    = "/api/services"   // 服务列表端点
	BlockchainURL = "/api/blockchain" // 区块链端点
	LedgerURL     = "/api/ledger"     // 账本端点
	SummaryURL    = "/api/summary"    // 摘要端点
	FileURL       = "/api/files"      // 文件列表端点
	NodesURL      = "/api/nodes"      // 节点列表端点
	DNSURL        = "/api/dns"        // DNS 端点
	MetricsURL    = "/api/metrics"    // 指标端点
	PeerstoreURL  = "/api/peerstore"  // 对等存储端点
	PeerGateURL   = "/api/peergate"   // 对等网关端点
)

API 端点常量定义

Variables

This section is empty.

Functions

func API

func API(ctx context.Context, l string, defaultInterval, timeout time.Duration, e *node.Node, bwc metrics.Reporter, debugMode bool) error

API 启动 EdgeVPN API 服务器 ctx: 上下文 l: 监听地址(支持 unix:// 前缀的 Unix 套接字) defaultInterval: 默认间隔时间 timeout: 超时时间 e: EdgeVPN 节点实例 bwc: 带宽报告器 debugMode: 是否启用调试模式

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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