From 6ced549deaecb42b9bb93ea9efcb4c1bbaabe8a4 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Sat, 20 Sep 2025 09:35:50 +0200 Subject: docs: add comments for all functions --- xray/config.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xray/config.go') diff --git a/xray/config.go b/xray/config.go index b10592d0..2b4a6673 100644 --- a/xray/config.go +++ b/xray/config.go @@ -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 -- cgit v1.2.3