Documentation
¶
Overview ¶
Package main is the entry point for the SharX node service (worker). This service runs XRAY Core and provides a REST API for the master panel to manage it. Authentication is pairing-only: SECRET_KEY (JWT + HMAC); log push uses HMAC.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package amneziawg runs AmneziaWG-go sidecar processes on the SharX panel/node host.
|
Package amneziawg runs AmneziaWG-go sidecar processes on the SharX panel/node host. |
|
Package api provides REST API endpoints for the node service.
|
Package api provides REST API endpoints for the node service. |
|
Package auth loads the node SECRET_KEY used for JWT and HMAC auth with the panel.
|
Package auth loads the node SECRET_KEY used for JWT and HMAC auth with the panel. |
|
Package config provides node configuration persistence (panel URL, node address).
|
Package config provides node configuration persistence (panel URL, node address). |
|
Package configpull fetches Xray configuration from the panel on worker startup (HMAC pairing).
|
Package configpull fetches Xray configuration from the panel on worker startup (HMAC pairing). |
|
Package defaults holds node service defaults (host-network worker).
|
Package defaults holds node service defaults (host-network worker). |
|
Package geopush sends one-shot egress geolocation from the worker to the panel (HMAC, pairing).
|
Package geopush sends one-shot egress geolocation from the worker to the panel (HMAC, pairing). |
|
Package logs provides log pushing functionality for sending logs from node to panel in real-time.
|
Package logs provides log pushing functionality for sending logs from node to panel in real-time. |
|
Package telemt runs Telemt (MTProto) sidecar processes on the SharX node.
|
Package telemt runs Telemt (MTProto) sidecar processes on the SharX node. |
|
Package xray provides XRAY Core management for the node service.
|
Package xray provides XRAY Core management for the node service. |
Click to show internal directories.
Click to hide internal directories.