edition

package
v0.2.0-dev.6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package edition names the two builds of the panel (the VPS binary and the Cloudflare edge Worker) and the features the edge does not run yet. The admin reads the list from MeResponse and shows those features as "not available in this edition yet"; an RPC that would start such work refuses with Refuse instead of queuing it silently.

Index

Constants

View Source
const (
	VPS  = "vps"
	Edge = "edge"
)

Names of the editions, as MeResponse.edition carries them.

View Source
const (
	Backups      = "backups"
	MCP          = "mcp"
	Assistant    = "assistant"
	HealthChecks = "health_checks"
	AgentUpdates = "agent_updates"
	AgentLogs    = "agent_logs"
	PanelUpdate  = "panel_update"
	DecoyOwn     = "decoy_own"
	TSPUProbe    = "tspu_probe"
	OSUpdates    = "os_updates"
	OwnProbes    = "own_probes"
	// SNIScan is the neighbour scan for a REALITY target: a node walks its /24 (the ProbeService, not mounted on the edge).
	SNIScan = "sni_scan"
	// TrustTunnel is the VPS edition's own protocol: the edge edition has no plugin and no keys for it.
	TrustTunnel = "trusttunnel"
)

Stable feature ids, as MeResponse.unavailable carries them. The admin words each as "err.unavailable_in_edition" plus its own name; never rename one.

View Source
const Code = "unavailable_in_edition"

Code is the refusal code of Refuse; the admin has a sentence for it ("err.unavailable_in_edition").

Variables

This section is empty.

Functions

func Check

func Check(isEdge bool, feature string) error

Check is Refuse on the edge and nil on the VPS: the one line an RPC needs.

func Name

func Name(isEdge bool) string

Name is the edition's name for MeResponse.

func Refuse

func Refuse(feature string) error

Refuse is the refusal of an RPC that would start work the edge does not run: FAILED_PRECONDITION whose message is the code and the feature ("unavailable_in_edition: feature=backups"), the same shape as the admin's other coded refusals.

func Unavailable

func Unavailable(isEdge bool) []string

Unavailable is the feature ids the edition lacks: none on the VPS. The result is a copy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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