mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-18 05:04:40 +03:00
docs: add comments for all functions
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"github.com/mhsanaei/3x-ui/v2/util/json_util"
|
||||
)
|
||||
|
||||
// Config represents the complete Xray configuration structure.
|
||||
// It contains all sections of an Xray config file including inbounds, outbounds, routing, etc.
|
||||
type Config struct {
|
||||
LogConfig json_util.RawMessage `json:"log"`
|
||||
RouterConfig json_util.RawMessage `json:"routing"`
|
||||
@@ -23,6 +25,7 @@ type Config struct {
|
||||
Metrics json_util.RawMessage `json:"metrics"`
|
||||
}
|
||||
|
||||
// Equals compares two Config instances for deep equality.
|
||||
func (c *Config) Equals(other *Config) bool {
|
||||
if len(c.InboundConfigs) != len(other.InboundConfigs) {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user