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/inbound.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xray/inbound.go') diff --git a/xray/inbound.go b/xray/inbound.go index 5a328f31..cbe4392d 100644 --- a/xray/inbound.go +++ b/xray/inbound.go @@ -6,6 +6,8 @@ import ( "github.com/mhsanaei/3x-ui/v2/util/json_util" ) +// InboundConfig represents an Xray inbound configuration. +// It defines how Xray accepts incoming connections including protocol, port, and settings. type InboundConfig struct { Listen json_util.RawMessage `json:"listen"` // listen cannot be an empty string Port int `json:"port"` @@ -16,6 +18,7 @@ type InboundConfig struct { Sniffing json_util.RawMessage `json:"sniffing"` } +// Equals compares two InboundConfig instances for deep equality. func (c *InboundConfig) Equals(other *InboundConfig) bool { if !bytes.Equal(c.Listen, other.Listen) { return false -- cgit v1.2.3