panel/

directory
v0.1.74 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package access is the panel's access module: profiles and their inbounds, groups, users, devices and credentials, the user status rules (disabled > expired > limited > active), the effective-access rule that turns all of it into desired state for a node, and the data of the public subscription.
Package access is the panel's access module: profiles and their inbounds, groups, users, devices and credentials, the user status rules (disabled > expired > limited > active), the effective-access rule that turns all of it into desired state for a node, and the data of the public subscription.
Package app assembles the shared panel services and HTTP surface for each edition.
Package app assembles the shared panel services and HTTP surface for each edition.
Package auth signs panel admins in — with passkeys (WebAuthn) or, as the fallback chosen at setup, with password + authenticator code — and manages their sessions.
Package auth signs panel admins in — with passkeys (WebAuthn) or, as the fallback chosen at setup, with password + authenticator code — and manages their sessions.
Package blocklist is the second source of the country check ("is the node reachable from Russia"): the public lists of blocked addresses, downloaded by the panel and compared with every node's IPv4 address in memory.
Package blocklist is the second source of the country check ("is the node reachable from Russia"): the public lists of blocked addresses, downloaded by the panel and compared with every node's IPv4 address in memory.
Package bsbord adds the paid mobile-network reachability source to the country check.
Package bsbord adds the paid mobile-network reachability source to the country check.
Package cheburcheck checks whether volunteer networks can send a SYN through the TSPU box to a node's IPv4 address.
Package cheburcheck checks whether volunteer networks can send a SYN through the TSPU box to a node's IPv4 address.
Package clientprobe is the source "kl!ck reports" of the Reachability page: the local server check of the kl!ck VPN app, which a person starts in the app and, with the "send to the panel" switch on, sends to the panel that issued the subscription (client_probe.proto).
Package clientprobe is the source "kl!ck reports" of the Reachability page: the local server check of the kl!ck VPN app, which a person starts in the app and, with the "send to the panel" switch on, sends to the panel that issued the subscription (client_probe.proto).
Package connectiondiag holds shared interpretation for the connection counter API and MCP tools.
Package connectiondiag holds shared interpretation for the connection counter API and MCP tools.
Package countryprobe is the third source of the country check ("is the node reachable from Russia"): one of the owner's own nodes inside the country, the probe node, tests with TCP SYNs of a limited TTL whether the connections to the other nodes of the fleet survive the national DPI box (the TSPU).
Package countryprobe is the third source of the country check ("is the node reachable from Russia"): one of the owner's own nodes inside the country, the probe node, tests with TCP SYNs of a limited TTL whether the connections to the other nodes of the fleet survive the national DPI box (the TSPU).
Package countryreach holds the one setting that every source of the country check shares: the country to look from (Globalping, the block lists and the TSPU probe all read it, which is why it is not a setting of any of them), and the history of what the sources said, which the Reachability page draws.
Package countryreach holds the one setting that every source of the country check shares: the country to look from (Globalping, the block lists and the TSPU probe all read it, which is why it is not a setting of any of them), and the history of what the sources said, which the Reachability page draws.
Package dns is the panel's DNS preset module: built-in and custom presets, the DnsService admin API, and the rule that picks the preset that applies to a user (user, then group, then the instance default, then the built-in default).
Package dns is the panel's DNS preset module: built-in and custom presets, the DnsService admin API, and the rule that picks the preset that applies to a user (user, then group, then the instance default, then the built-in default).
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.
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.
Package fleet is the panel side of the node fleet: the panel CA and the agent endpoint (mTLS), node enrollment, the agent stream (liveness, reliable stats/events ingestion), desired-state computation and push, and the admin NodeService / FleetService handlers backed by that data.
Package fleet is the panel side of the node fleet: the panel CA and the agent endpoint (mTLS), node enrollment, the agent stream (liveness, reliable stats/events ingestion), desired-state computation and push, and the admin NodeService / FleetService handlers backed by that data.
Package globalping is the Globalping integration: the owner's settings (off by default, an interval, an optional write-only token; the country is the shared one of countryreach), a client of the Globalping API and the health.CountrySource that the country check measures through.
Package globalping is the Globalping integration: the owner's settings (off by default, an interval, an optional write-only token; the country is the shared one of countryreach), a client of the Globalping API and the health.CountrySource that the country check measures through.
Package health is the panel's health module: the synthetic checker (the panel dials every inbound as a client and probes through the tunnel), the alerts derived from node state, doctor reports and check results with their lifecycle, the storage and relay of the node doctor, and the retention jobs of all of it.
Package health is the panel's health module: the synthetic checker (the panel dials every inbound as a client and probes through the tunnel), the alerts derived from node state, doctor reports and check results with their lifecycle, the storage and relay of the node doctor, and the retention jobs of all of it.
vlesshelper
Package vlesshelper contains the Xray client used by the panel's short-lived VLESS health helper.
Package vlesshelper contains the Xray client used by the panel's short-lived VLESS health helper.
vlesswire
Package vlesswire holds the messages between the panel and its VLESS health helper process.
Package vlesswire holds the messages between the panel and its VLESS health helper process.
Package httpheaders contains headers shared by the panel's outbound clients.
Package httpheaders contains headers shared by the panel's outbound clients.
Package httpserver wires the panel's HTTP surface: the public listener (decoy site, the admin UI/API when it is reached by secret host or secret path prefix, the secret public mounts such as subscriptions, and the agent endpoint selected by a secret TLS SNI name) and an optional separate admin listener.
Package httpserver wires the panel's HTTP surface: the public listener (decoy site, the admin UI/API when it is reached by secret host or secret path prefix, the secret public mounts such as subscriptions, and the agent endpoint selected by a secret TLS SNI name) and an optional separate admin listener.
ratelimit
Package ratelimit holds the in-memory, bounded-memory state behind the public surface's abuse protection: a keyed map that evicts its least recently used entry when full, and a token bucket limiter built on it.
Package ratelimit holds the in-memory, bounded-memory state behind the public surface's abuse protection: a keyed map that evicts its least recently used entry when full, and a token bucket limiter built on it.
Package instance holds the settings of this panel installation that are visible to its users: the brand (a two-part wordmark and an optional logo), the accent colour and the default language.
Package instance holds the settings of this panel installation that are visible to its users: the brand (a two-part wordmark and an optional logo), the accent colour and the default language.
Package mcp is the panel's MCP server for agents: the tools of the token profiles over Streamable HTTP, and the stdio proxy that `mistgate mcp` runs.
Package mcp is the panel's MCP server for agents: the tools of the token profiles over Streamable HTTP, and the stdio proxy that `mistgate mcp` runs.
Package pagepass is the password of a user's page and the cookie that remembers it.
Package pagepass is the password of a user's page and the cookie that remembers it.
awg
Package awg is the panel half of the AmneziaWG protocol plugin: the settings schema, a validator stricter than both implementations, the obfuscation generator with its mimicry presets, the translation of a profile into a node-side inbound, the per-device X25519 credentials and the three client formats (.conf, vpn://, Mihomo proxy).
Package awg is the panel half of the AmneziaWG protocol plugin: the settings schema, a validator stricter than both implementations, the obfuscation generator with its mimicry presets, the translation of a profile into a node-side inbound, the per-device X25519 credentials and the three client formats (.conf, vpn://, Mihomo proxy).
awg/mimicry
Package mimicry builds and checks the I1..I5 "custom protocol signature" packets of AmneziaWG 2.0/3.x.
Package mimicry builds and checks the I1..I5 "custom protocol signature" packets of AmneziaWG 2.0/3.x.
awg/vpnkey
Package vpnkey encodes and decodes the vpn:// connection key of AmneziaVPN.
Package vpnkey encodes and decodes the vpn:// connection key of AmneziaVPN.
builtin
Package builtin builds the registry of the protocol plugins shipped with the panel.
Package builtin builds the registry of the protocol plugins shipped with the panel.
hysteria2
Package hysteria2 is the panel half of the Hysteria2 protocol plugin: the settings schema, validation, translation of a profile into a node-side inbound spec, credential issuing and the hysteria2:// URI.
Package hysteria2 is the panel half of the Hysteria2 protocol plugin: the settings schema, validation, translation of a profile into a node-side inbound spec, credential issuing and the hysteria2:// URI.
jsoncheck
Package jsoncheck lets the tests ask the real cores whether a client config they render is valid: Xray in process (xray-core's own config builder) and sing-box through its binary.
Package jsoncheck lets the tests ask the real cores whether a client config they render is valid: Xray in process (xray-core's own config builder) and sing-box through its binary.
mtproto
Package mtproto is the panel half of the Telegram MTProto proxy plugin: the profile schema, validation, node-side inbound construction, credential issuing and the tg://proxy link.
Package mtproto is the panel half of the Telegram MTProto proxy plugin: the profile schema, validation, node-side inbound construction, credential issuing and the tg://proxy link.
vless
Package vless is the panel half of the VLESS protocol plugin.
Package vless is the panel half of the VLESS protocol plugin.
Package provision contains the panel's SSH provisioning primitives.
Package provision contains the panel's SSH provisioning primitives.
Package securitylimit provides the shared backend for security-sensitive limits.
Package securitylimit provides the shared backend for security-sensitive limits.
Package store owns the panel's database, embedded migrations, and the plain-SQL queries the other modules use.
Package store owns the panel's database, embedded migrations, and the plain-SQL queries the other modules use.
Package subs serves the public subscription endpoint: GET <prefix>/<token> returns base64 of the user's client lines (hysteria2:// and vless:// URIs) with the headers Happ and other Xray/sing-box apps read, or, for a client the settings send to the Mihomo format, a Mihomo YAML profile (mihomo.go), to the Xray JSON format an array of Xray configs (xrayjson.go), to the sing-box format a sing-box profile (singbox.go; a hidden ?format=xray-json|sing-box on the link picks one of the two for a request); a browser gets the user page.
Package subs serves the public subscription endpoint: GET <prefix>/<token> returns base64 of the user's client lines (hysteria2:// and vless:// URIs) with the headers Happ and other Xray/sing-box apps read, or, for a client the settings send to the Mihomo format, a Mihomo YAML profile (mihomo.go), to the Xray JSON format an array of Xray configs (xrayjson.go), to the sing-box format a sing-box profile (singbox.go; a hidden ?format=xray-json|sing-box on the link picks one of the two for a request); a browser gets the user page.
Package subsettings holds the subscription settings of the installation (SubscriptionService): names and texts, the apps the public user page recommends, the server-name template and the format rules.
Package subsettings holds the subscription settings of the installation (SubscriptionService): names and texts, the apps the public user page recommends, the server-name template and the format rules.
Package telegram sends the panel's alerts to the admins who linked a Telegram chat, and serves the admin TelegramService that sets the bot up.
Package telegram sends the panel's alerts to the admins who linked a Telegram chat, and serves the admin TelegramService that sets the bot up.
Package update is the panel side of the node-agent updates: it reads the release bundle the owner signed and dropped into <data-dir>/dist, shows whether it is trusted, serves its files to the node agents (only through the agent mTLS endpoint, see fleet.Updates), runs owner-triggered node updates (with a health gate and automatic rollback) whose state lives in the database, and serves the admin UpdateService.
Package update is the panel side of the node-agent updates: it reads the release bundle the owner signed and dropped into <data-dir>/dist, shows whether it is trusted, serves its files to the node agents (only through the agent mTLS endpoint, see fleet.Updates), runs owner-triggered node updates (with a health gate and automatic rollback) whose state lives in the database, and serves the admin UpdateService.
Package vault encrypts secrets at rest (XChaCha20-Poly1305, AAD = record id) and provides a string type that never prints its value.
Package vault encrypts secrets at rest (XChaCha20-Poly1305, AAD = record id) and provides a string type that never prints its value.
Package warp is the panel side of the WARP egress: one Cloudflare WARP account per node, either registered by the panel at the owner's click (an anonymous device registration, the same call the 1.1.1.1 app makes, with the Cloudflare terms accepted on the owner's behalf) or imported from wgcf files, stored encrypted, turned into the node's WarpSpec, and shown (without secrets) in the admin WarpService.
Package warp is the panel side of the WARP egress: one Cloudflare WARP account per node, either registered by the panel at the owner's click (an anonymous device registration, the same call the 1.1.1.1 app makes, with the Cloudflare terms accepted on the owner's behalf) or imported from wgcf files, stored encrypted, turned into the node's WarpSpec, and shown (without secrets) in the admin WarpService.

Jump to

Keyboard shortcuts

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