Documentation
¶
Overview ¶
Package main is the entry point for the 3x-ui web panel application. It initializes the database, web server, and handles command-line operations for managing the panel.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config provides configuration management utilities for the 3x-ui panel, including version information, logging levels, database paths, and environment variable handling.
|
Package config provides configuration management utilities for the 3x-ui panel, including version information, logging levels, database paths, and environment variable handling. |
|
Package database provides database initialization, migration, and management utilities for the 3x-ui panel using GORM with SQLite.
|
Package database provides database initialization, migration, and management utilities for the 3x-ui panel using GORM with SQLite. |
|
model
Package model defines the database models and data structures used by the 3x-ui panel.
|
Package model defines the database models and data structures used by the 3x-ui panel. |
|
Package logger provides logging functionality for the 3x-ui panel with dual-backend logging (console/syslog and file) and buffered log storage for web UI.
|
Package logger provides logging functionality for the 3x-ui panel with dual-backend logging (console/syslog and file) and buffered log storage for web UI. |
|
Package sub provides subscription server functionality for the 3x-ui panel, including HTTP/HTTPS servers for serving subscription links and JSON configurations.
|
Package sub provides subscription server functionality for the 3x-ui panel, including HTTP/HTTPS servers for serving subscription links and JSON configurations. |
|
util
|
|
|
common
Package common provides common utility functions for error handling, formatting, and multi-error management.
|
Package common provides common utility functions for error handling, formatting, and multi-error management. |
|
crypto
Package crypto provides cryptographic utilities for password hashing and verification.
|
Package crypto provides cryptographic utilities for password hashing and verification. |
|
json_util
Package json_util provides JSON utilities including a custom RawMessage type.
|
Package json_util provides JSON utilities including a custom RawMessage type. |
|
random
Package random provides utilities for generating random strings and numbers.
|
Package random provides utilities for generating random strings and numbers. |
|
reflect_util
Package reflect_util provides reflection utilities for working with struct fields and values.
|
Package reflect_util provides reflection utilities for working with struct fields and values. |
|
sys
Package sys provides system utilities for monitoring network connections and CPU usage.
|
Package sys provides system utilities for monitoring network connections and CPU usage. |
|
Package web provides the main web server implementation for the 3x-ui panel, including HTTP/HTTPS serving, routing, templates, and background job scheduling.
|
Package web provides the main web server implementation for the 3x-ui panel, including HTTP/HTTPS serving, routing, templates, and background job scheduling. |
|
controller
Package controller provides HTTP request handlers and controllers for the 3x-ui web management panel.
|
Package controller provides HTTP request handlers and controllers for the 3x-ui web management panel. |
|
entity
Package entity defines data structures and entities used by the web layer of the 3x-ui panel.
|
Package entity defines data structures and entities used by the web layer of the 3x-ui panel. |
|
global
Package global provides global variables and interfaces for accessing web and subscription servers.
|
Package global provides global variables and interfaces for accessing web and subscription servers. |
|
job
Package job provides background job implementations for the 3x-ui web panel, including traffic monitoring, system checks, and periodic maintenance tasks.
|
Package job provides background job implementations for the 3x-ui web panel, including traffic monitoring, system checks, and periodic maintenance tasks. |
|
locale
Package locale provides internationalization (i18n) support for the 3x-ui web panel, including translation loading, localization, and middleware for web and bot interfaces.
|
Package locale provides internationalization (i18n) support for the 3x-ui web panel, including translation loading, localization, and middleware for web and bot interfaces. |
|
middleware
Package middleware provides HTTP middleware functions for the 3x-ui web panel, including domain validation and URL redirection utilities.
|
Package middleware provides HTTP middleware functions for the 3x-ui web panel, including domain validation and URL redirection utilities. |
|
network
Package network provides network utilities for the 3x-ui web panel, including automatic HTTP to HTTPS redirection functionality.
|
Package network provides network utilities for the 3x-ui web panel, including automatic HTTP to HTTPS redirection functionality. |
|
service
Package service provides business logic services for the 3x-ui web panel, including inbound/outbound management, user administration, settings, and Xray integration.
|
Package service provides business logic services for the 3x-ui web panel, including inbound/outbound management, user administration, settings, and Xray integration. |
|
session
Package session provides session management utilities for the 3x-ui web panel.
|
Package session provides session management utilities for the 3x-ui web panel. |
|
websocket
Package websocket provides WebSocket hub for real-time updates and notifications.
|
Package websocket provides WebSocket hub for real-time updates and notifications. |
|
Package xray provides integration with the Xray proxy core.
|
Package xray provides integration with the Xray proxy core. |
Click to show internal directories.
Click to hide internal directories.