Directories
¶
| Path | Synopsis |
|---|---|
|
Package agentcap holds the capability strings an agent lists in Hello.capabilities and a panel asks for (agent.proto).
|
Package agentcap holds the capability strings an agent lists in Hello.capabilities and a panel asks for (agent.proto). |
|
Package agentlink contains the versioned signed-link handshake shared by the panel and node agent.
|
Package agentlink contains the versioned signed-link handshake shared by the panel and node agent. |
|
Package asndb reads, writes and looks up the release-pinned autonomous-system table.
|
Package asndb reads, writes and looks up the release-pinned autonomous-system table. |
|
Package buildinfo holds values stamped into the binaries at build time.
|
Package buildinfo holds values stamped into the binaries at build time. |
|
Package decoy is the neutral static site shown to everyone who is not a Hysteria2 client (or an admin): HTTP/3 masquerade, HTTPS on TCP 443, later the panel's public listener.
|
Package decoy is the neutral static site shown to everyone who is not a Hysteria2 client (or an admin): HTTP/3 masquerade, HTTPS on TCP 443, later the panel's public listener. |
|
Package dnsdefaults defines the country-specific resolvers the doctor checks and offers for the server's own resolver when the node has none configured.
|
Package dnsdefaults defines the country-specific resolvers the doctor checks and offers for the server's own resolver when the node has none configured. |
|
Package logring keeps the panel's last log records in memory and lets the owner change the level while it runs.
|
Package logring keeps the panel's last log records in memory and lets the owner change the level while it runs. |
|
Package logscrub cuts IP addresses out of log text that leaves a node (the node journal, agent.proto JournalEntry).
|
Package logscrub cuts IP addresses out of log text that leaves a node (the node journal, agent.proto JournalEntry). |
|
Package mtproto is the Telegram MTProto proxy protocol as a Mistgate node serves it: Fake TLS in front, obfuscated2 inside, a fresh obfuscated2 connection to a Telegram DC behind.
|
Package mtproto is the Telegram MTProto proxy protocol as a Mistgate node serves it: Fake TLS in front, obfuscated2 inside, a fresh obfuscated2 connection to a Telegram DC behind. |
|
mtprototest
Package mtprototest contains the fake Telegram DC used by proxy tests.
|
Package mtprototest contains the fake Telegram DC used by proxy tests. |
|
node
|
|
|
agent
Package agent is the node agent core: it enrolls with the panel, keeps ONE agent session open (mTLS Connect by default, or the signed WebSocket link when the agent has a link URL and the panel advertises it; a link that fails to establish falls back to mTLS and is retried after a hold period; reconnecting with backoff), applies desired state to engines, reports traffic reliably (seq + ack), executes commands and serves its own log.
|
Package agent is the node agent core: it enrolls with the panel, keeps ONE agent session open (mTLS Connect by default, or the signed WebSocket link when the agent has a link URL and the panel advertises it; a link that fails to establish falls back to mTLS and is retried after a hold period; reconnecting with backoff), applies desired state to engines, reports traffic reliably (seq + ack), executes commands and serves its own log. |
|
awg
Package awg is the node's AmneziaWG engine (engine.Engine).
|
Package awg is the node's AmneziaWG engine (engine.Engine). |
|
awg/awgcfg
Package awgcfg is the pure data model of an AmneziaWG interface shared by the node engine, the wire clients (awgnl, awguapi) and the panel plugin: settings JSON, the strict validator and the peer types.
|
Package awgcfg is the pure data model of an AmneziaWG interface shared by the node engine, the wire clients (awgnl, awguapi) and the panel plugin: settings JSON, the strict validator and the peer types. |
|
awg/awgnl
Package awgnl talks to the amneziawg kernel module over generic netlink (family "amneziawg", WG_GENL_VERSION 3, the AWG 3.0/3.1 encoding).
|
Package awgnl talks to the amneziawg kernel module over generic netlink (family "amneziawg", WG_GENL_VERSION 3, the AWG 3.0/3.1 encoding). |
|
awg/awgtest
Package awgtest is the test harness for AmneziaWG on Linux: network namespaces with veth pairs, real amneziawg-go clients built from the pinned source (never a downloaded binary), and small probes (ping, a "who do you see me as" TCP server, iperf3).
|
Package awgtest is the test harness for AmneziaWG on Linux: network namespaces with veth pairs, real amneziawg-go clients built from the pinned source (never a downloaded binary), and small probes (ping, a "who do you see me as" TCP server, iperf3). |
|
awg/awguapi
Package awguapi renders and parses the UAPI text protocol of amneziawg-go v3.1.x (device.IpcSet / IpcGet).
|
Package awguapi renders and parses the UAPI text protocol of amneziawg-go v3.1.x (device.IpcSet / IpcGet). |
|
awgprep
Package awgprep puts the AmneziaWG kernel module on a node.
|
Package awgprep puts the AmneziaWG kernel module on a node. |
|
bench
Package bench is the engine benchmark suite: Hysteria2, VLESS (REALITY over TCP and over XHTTP) and AmneziaWG, each between two network namespaces joined by a veth pair (with netem variants), measured for throughput, CPU per gigabyte, latency under load, memory and handshakes per second.
|
Package bench is the engine benchmark suite: Hysteria2, VLESS (REALITY over TCP and over XHTTP) and AmneziaWG, each between two network namespaces joined by a veth pair (with netem variants), measured for throughput, CPU per gigabyte, latency under load, memory and handshakes per second. |
|
certs
Package certs is the node's certificate source (engine.CertSource): ACME for a domain and a persisted self-signed certificate whose SHA-256 pin the panel puts into subscription URIs.
|
Package certs is the node's certificate source (engine.CertSource): ACME for a domain and a persisted self-signed certificate whose SHA-256 pin the panel puts into subscription URIs. |
|
doctor
Package doctor is the node's self-diagnosis: host checks that each come from a real incident, and safe fixes the panel may ask for.
|
Package doctor is the node's self-diagnosis: host checks that each come from a real incident, and safe fixes the panel may ask for. |
|
egress
Package egress is the node's direct outbound for Hysteria2 (engine.Egress).
|
Package egress is the node's direct outbound for Hysteria2 (engine.Egress). |
|
front
Package front shares one TCP port between services by the SNI of the first ClientHello.
|
Package front shares one TCP port between services by the SNI of the first ClientHello. |
|
front/fronttest
Package fronttest puts a real front on loopback in front of an engine under test: the engine's tests then show what reaches it through the shared port, not what a stand-in would.
|
Package fronttest puts a real front on loopback in front of an engine under test: the engine's tests then show what reaches it through the shared port, not what a stand-in would. |
|
hostctl
Package hostctl is the agent's view of the machine it runs on: host facts for Hello, host metrics for StatsBatch, and the host state the agent owns: its nftables tables for port-hop redirects and the SSH brute-force guard, the UDP delivery counter, the fail-open torrent queue, exact UDP/TCP inbound rules in an active UFW firewall, and owner-approved tagged forwarding exceptions limited to Mistgate traffic in host FORWARD chains, the fq + bbr, conntrack and UDP socket-buffer sysctl baseline and the journald size cap.
|
Package hostctl is the agent's view of the machine it runs on: host facts for Hello, host metrics for StatsBatch, and the host state the agent owns: its nftables tables for port-hop redirects and the SSH brute-force guard, the UDP delivery counter, the fail-open torrent queue, exact UDP/TCP inbound rules in an active UFW firewall, and owner-approved tagged forwarding exceptions limited to Mistgate traffic in host FORWARD chains, the fq + bbr, conntrack and UDP socket-buffer sysctl baseline and the journald size cap. |
|
hysteria2
Package hysteria2 is the node's Hysteria2 engine (engine.Engine) on top of the hysteria core library (github.com/apernet/hysteria/core/v2).
|
Package hysteria2 is the node's Hysteria2 engine (engine.Engine) on top of the hysteria core library (github.com/apernet/hysteria/core/v2). |
|
mtproto
Package mtproto is the node's Telegram MTProto proxy engine: one TCP listener per inbound, Fake TLS authentication and a direct relay to a Telegram DC (the protocol is internal/mtproto).
|
Package mtproto is the node's Telegram MTProto proxy engine: one TCP listener per inbound, Fake TLS authentication and a direct relay to a Telegram DC (the protocol is internal/mtproto). |
|
nets
Package nets maps client addresses to ASNs inside the engine and aggregates connection events without retaining addresses.
|
Package nets maps client addresses to ASNs inside the engine and aggregates connection events without retaining addresses. |
|
netstest
Package netstest provides network-table fixtures shared by node engine tests.
|
Package netstest provides network-table fixtures shared by node engine tests. |
|
nftinstall
Package nftinstall puts the nftables package on a server that lacks it (a cloud image of Debian 13 has no nft command, and the agent's firewall steps need it).
|
Package nftinstall puts the nftables package on a server that lacks it (a cloud image of Debian 13 has no nft command, and the agent's firewall steps need it). |
|
nftmissing
Package nftmissing names one failure the agent meets on a server without the nft command (a cloud image of Debian 13 ships without the nftables package): what hostctl and warp return for it, how the agent says it once instead of every cycle, and where to look for the command.
|
Package nftmissing names one failure the agent meets on a server without the nft command (a cloud image of Debian 13 ships without the nftables package): what hostctl and warp return for it, how the agent says it once instead of every cycle, and where to look for the command. |
|
osupdate
Package osupdate reads the package and kernel state already present on an apt host.
|
Package osupdate reads the package and kernel state already present on an apt host. |
|
ratelimit
Package ratelimit provides the byte token buckets shared by node engines: one per credential (the device limit) and one per user on the node (the person limit, see Registry).
|
Package ratelimit provides the byte token buckets shared by node engines: one per credential (the device limit) and one per user on the node (the person limit, see Registry). |
|
sitehttp
Package sitehttp holds the HTTP/2 settings and the anonymous-connection limit shared by HTTPS listeners.
|
Package sitehttp holds the HTTP/2 settings and the anonymous-connection limit shared by HTTPS listeners. |
|
sitehttp/sitehttptest
Package sitehttptest checks that an HTTPS site of the node speaks HTTP/2 like every other one.
|
Package sitehttptest checks that an HTTPS site of the node speaks HTTP/2 like every other one. |
|
sniscan
Package sniscan looks for REALITY targets among the neighbours of a node: sites in the same /24 that answer on TCP 443 with TLS 1.3 and X25519MLKEM768 and a certificate that holds for their name (agent.proto "NEIGHBOR SITES").
|
Package sniscan looks for REALITY targets among the neighbours of a node: sites in the same /24 that answer on TCP 443 with TLS 1.3 and X25519MLKEM768 and a certificate that holds for their name (agent.proto "NEIGHBOR SITES"). |
|
speedtest
Package speedtest measures how fast a node reaches the internet, for the panel's "network capacity" suggestion (agent.proto "BANDWIDTH TEST").
|
Package speedtest measures how fast a node reaches the internet, for the panel's "network capacity" suggestion (agent.proto "BANDWIDTH TEST"). |
|
torrentguard
Package torrentguard contains bounded, dependency-free parsers for plaintext BitTorrent protocol signatures.
|
Package torrentguard contains bounded, dependency-free parsers for plaintext BitTorrent protocol signatures. |
|
trusttunnel
Package trusttunnel serves TrustTunnel over HTTP/2 and optionally HTTP/3 in-process.
|
Package trusttunnel serves TrustTunnel over HTTP/2 and optionally HTTP/3 in-process. |
|
update
Package update is the node agent's self-update: verify a release the owner signed, swap the executable, re-exec, and undo it if the new build does not come up.
|
Package update is the node agent's self-update: verify a release the owner signed, swap the executable, re-exec, and undo it if the new build does not come up. |
|
vless
Package vless is the node's VLESS engine on top of xray-core.
|
Package vless is the node's VLESS engine on top of xray-core. |
|
warp
Package warp is the node's WARP egress.
|
Package warp is the node's WARP egress. |
|
warp/cfapi
Package cfapi is the Cloudflare WARP registration client and the importer for wgcf profiles.
|
Package cfapi is the Cloudflare WARP registration client and the importer for wgcf profiles. |
|
panel
|
|
|
access
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. |
|
adminqr
Package adminqr makes the QR codes the admin panel draws: the server encodes, the page only draws the modules it is told (web/src/components/qr-code.tsx), as the person's page does (internal/panel/subs/page_qr.go).
|
Package adminqr makes the QR codes the admin panel draws: the server encodes, the page only draws the modules it is told (web/src/components/qr-code.tsx), as the person's page does (internal/panel/subs/page_qr.go). |
|
app
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. |
|
auth
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. |
|
blocklist
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. |
|
bsbord
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. |
|
capacity
Package capacity reads a node's hours of host load (store.HostHour) as an answer to "how loaded is it, what runs out first, and how many more people can it take".
|
Package capacity reads a node's hours of host load (store.HostHour) as an answer to "how loaded is it, what runs out first, and how many more people can it take". |
|
cheburcheck
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. |
|
clientapi
Package clientapi owns the panel setting that advertises desktop client API discovery on subscription answers.
|
Package clientapi owns the panel setting that advertises desktop client API discovery on subscription answers. |
|
clientdebug
Package clientdebug takes the logs a person's app sends for support (client API: POST <base>/debug, client_debug.proto of the plan "logs for support").
|
Package clientdebug takes the logs a person's app sends for support (client API: POST <base>/debug, client_debug.proto of the plan "logs for support"). |
|
clientprobe
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). |
|
connectiondiag
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. |
|
countryprobe
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). |
|
countryreach
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. |
|
decoyphotos
Package decoyphotos fetches the photographs of generated decoy sites from Pexels (pexels.com) or Pixabay (pixabay.com) and makes them ready for a site: cropped to their slot, cut down, re-encoded as JPEG.
|
Package decoyphotos fetches the photographs of generated decoy sites from Pexels (pexels.com) or Pixabay (pixabay.com) and makes them ready for a site: cropped to their slot, cut down, re-encoded as JPEG. |
|
dns
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). |
|
edition
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. |
|
fleet
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. |
|
globalping
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. |
|
health
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. |
|
health/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. |
|
health/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. |
|
httpheaders
Package httpheaders contains headers shared by the panel's outbound clients.
|
Package httpheaders contains headers shared by the panel's outbound clients. |
|
httpserver
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. |
|
httpserver/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. |
|
instance
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. |
|
mcp
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. |
|
nodeshare
Package nodeshare converts how a node is handed out to groups between the admin API and the store.
|
Package nodeshare converts how a node is handed out to groups between the admin API and the store. |
|
ops
Package ops is the panel's own diagnostics and data lifecycle for the owner: the log ring and its level, retention of the tables the sweep prunes, a scrubbed export, and the /metrics endpoint; and two reads for every admin, the panel's own resources and the fleet's load (internal/panel/capacity).
|
Package ops is the panel's own diagnostics and data lifecycle for the owner: the log ring and its level, retention of the tables the sweep prunes, a scrubbed export, and the /metrics endpoint; and two reads for every admin, the panel's own resources and the fleet's load (internal/panel/capacity). |
|
pagepass
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. |
|
protocols/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). |
|
protocols/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. |
|
protocols/awg/vpnkey
Package vpnkey encodes and decodes the vpn:// connection key of AmneziaVPN.
|
Package vpnkey encodes and decodes the vpn:// connection key of AmneziaVPN. |
|
protocols/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. |
|
protocols/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. |
|
protocols/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. |
|
protocols/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. |
|
protocols/trusttunnel
Package trusttunnel is the panel half of the TrustTunnel protocol plugin.
|
Package trusttunnel is the panel half of the TrustTunnel protocol plugin. |
|
protocols/vless
Package vless is the panel half of the VLESS protocol plugin.
|
Package vless is the panel half of the VLESS protocol plugin. |
|
provision
Package provision contains the panel's SSH provisioning primitives.
|
Package provision contains the panel's SSH provisioning primitives. |
|
retention
Package retention holds the owner's retention settings: how long each table the sweep prunes keeps its rows.
|
Package retention holds the owner's retention settings: how long each table the sweep prunes keeps its rows. |
|
rpcstat
Package rpcstat counts the admin API's calls over the last few minutes: how many, how many failed, and how long the unary ones took.
|
Package rpcstat counts the admin API's calls over the last few minutes: how many, how many failed, and how long the unary ones took. |
|
securitylimit
Package securitylimit provides the shared backend for security-sensitive limits.
|
Package securitylimit provides the shared backend for security-sensitive limits. |
|
store
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. |
|
store/storetest
Package storetest gives tests a migrated panel database quickly.
|
Package storetest gives tests a migrated panel database quickly. |
|
subhdr
Package subhdr names the response headers of the subscription endpoint and says which names the owner's own response headers (SubscriptionSettings.response_headers) may not take.
|
Package subhdr names the response headers of the subscription endpoint and says which names the owner's own response headers (SubscriptionSettings.response_headers) may not take. |
|
subs
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. |
|
subsettings
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. |
|
tasks
Package tasks is the owner's scheduled tasks (mistgate.tasks.v1, design/adr/0017-agent-operable-fleet.md section 5): the TasksService, the scheduler that runs the tasks, and the two runners.
|
Package tasks is the owner's scheduled tasks (mistgate.tasks.v1, design/adr/0017-agent-operable-fleet.md section 5): the TasksService, the scheduler that runs the tasks, and the two runners. |
|
tasks/spec
Package spec is what a scheduled task is (mistgate.tasks.v1): its schedule and when it runs next, the steps of a check task and the conditions on their results, and the limits every definition is checked against.
|
Package spec is what a scheduled task is (mistgate.tasks.v1): its schedule and when it runs next, the steps of a check task and the conditions on their results, and the limits every definition is checked against. |
|
telegram
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. |
|
update
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. |
|
vault
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. |
|
warp
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. |
|
plugintest
Package plugintest holds the inputs the tests of everything that reads an inbound's settings share, so each is run on the same cases.
|
Package plugintest holds the inputs the tests of everything that reads an inbound's settings share, so each is run on the same cases. |
|
Package qr is a small QR Code encoder (ISO/IEC 18004, Model 2): byte mode, versions 1-40, error correction levels L/M/Q/H. It exists so the CLI can print a QR code to a terminal and the panel can draw one as an SVG (svg.go) without a dependency.
|
Package qr is a small QR Code encoder (ISO/IEC 18004, Model 2): byte mode, versions 1-40, error correction levels L/M/Q/H. It exists so the CLI can print a QR code to a terminal and the panel can draw one as an SVG (svg.go) without a dependency. |
|
Package release is the format of a signed release bundle and the checks on it.
|
Package release is the format of a signed release bundle and the checks on it. |
|
Package reqid is the short request id the admin HTTP server stamps on every request: in the context, the log records, the audit rows and, once the caller is signed in, the X-Request-Id response header.
|
Package reqid is the short request id the admin HTTP server stamps on every request: in the context, the log records, the audit rows and, once the caller is signed in, the X-Request-Id response header. |
|
Package sysstat reads what a Linux host and the current process are using: CPU (with the parts lost to softirq, steal and I/O wait), memory and swap, connection tracking, sockets, the NIC's link speed, and the process's own CPU, memory, threads and file descriptors.
|
Package sysstat reads what a Linux host and the current process are using: CPU (with the parts lost to softirq, steal and I/O wait), memory and swap, connection tracking, sockets, the NIC's link speed, and the process's own CPU, memory, threads and file descriptors. |
|
Package tcpcheck probes bounded TCP targets and distinguishes a Mistgate answer from another listener.
|
Package tcpcheck probes bounded TCP targets and distinguishes a Mistgate answer from another listener. |
|
Package trusttunnel implements the TrustTunnel wire format from the public specification of AdGuard's Apache-2.0 TrustTunnel project.
|
Package trusttunnel implements the TrustTunnel wire format from the public specification of AdGuard's Apache-2.0 TrustTunnel project. |
|
Package tspuprobe finds out whether TCP SYNs to an address die at the national DPI box (the Russian TSPU), seen from the machine it runs on.
|
Package tspuprobe finds out whether TCP SYNs to an address die at the national DPI box (the Russian TSPU), seen from the machine it runs on. |
|
Package udpcheck sends bounded, tagged UDP delivery probes.
|
Package udpcheck sends bounded, tagged UDP delivery probes. |
|
Package vendorcheck holds tests that keep the patched third-party cores honest: the vendored copies in third_party and the replace to the public Xray-core fork in go.mod.
|
Package vendorcheck holds tests that keep the patched third-party cores honest: the vendored copies in third_party and the replace to the public Xray-core fork in go.mod. |
Click to show internal directories.
Click to hide internal directories.