protocol

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilesLedgerKey    = "files"         // 文件账本键
	MachinesLedgerKey = "machines"      // 机器账本键
	ServicesLedgerKey = "services"      // 服务账本键
	UsersLedgerKey    = "users"         // 用户账本键
	HealthCheckKey    = "healthcheck"   // 健康检查键
	DNSKey            = "dns"           // DNS键
	EgressService     = "egress"        // 出口服务键
	TrustZoneKey      = "trustzone"     // 信任区域键
	TrustZoneAuthKey  = "trustzoneAuth" // 信任区域认证键
)

账本键常量定义

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol string

Protocol 协议类型定义

const (
	EdgeVPN         Protocol = "/edgevpn/0.1"         // EdgeVPN主协议
	ServiceProtocol Protocol = "/edgevpn/service/0.1" // 服务协议
	FileProtocol    Protocol = "/edgevpn/file/0.1"    // 文件协议
	EgressProtocol  Protocol = "/edgevpn/egress/0.1"  // 出口协议
)

协议ID常量定义

func (Protocol) ID

func (p Protocol) ID() p2pprotocol.ID

ID 返回libp2p协议ID

Jump to

Keyboard shortcuts

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