Versions in this module Expand all Collapse all v1 v1.0.4 Jul 14, 2025 v1.0.3 Jul 13, 2025 v1.0.2 Jul 13, 2025 Changes in this version type XUIClient + func (c *XUIClient) GetIP() (string, error) v1.0.1 Jun 10, 2025 Changes in this version type InboundClient + Password string v1.0.0 Jun 9, 2025 Changes in this version + type APIError struct + Message string + Method string + func (e APIError) Error() string + type APIResponse struct + Msg string + Obj T + Success bool + func (response *APIResponse[T]) Err(method string) error + type Allocate struct + Concurrency int + Refresh int + Strategy string + func (a *Allocate) UnmarshalJSON(data []byte) error + type Inbound struct + Allocate *Allocate + ClientStats interface{} + Down int + Enable bool + ExpiryTime int64 + ID int + Listen string + Port int + Protocol string + Remark string + Settings *Settings + Sniffing *Sniffing + StreamSettings *StreamSettings + Tag string + Total int + Up int + type InboundClient struct + Comment string + Email string + Enable bool + ExpiryTime int64 + Flow string + ID string + LimitIp int + Reset int + SubId string + TgId any + TotalGB int + type RealitySettings struct + Dest string + MaxClient string + MaxTimediff int + MinClient string + PrivateKey string + ServerNames []string + Settings struct{ ... } + ShortIds []string + Show bool + Xver int + type ServerStatus struct + AppStats struct{ ... } + Cpu float64 + CpuCores int + CpuSpeedMhz float64 + Disk struct{ ... } + Loads []float64 + Mem struct{ ... } + NetIO struct{ ... } + NetTraffic struct{ ... } + PublicIP struct{ ... } + Swap struct{ ... } + TcpCount int + UdpCount int + Uptime uint64 + Xray struct{ ... } + type Settings struct + Clients []*InboundClient + Decryption string + Fallbacks []interface{} + func (s *Settings) UnmarshalJSON(data []byte) error + type Sniffing struct + DestOverride []string + Enabled bool + MetadataOnly bool + RouteOnly bool + func (sn *Sniffing) UnmarshalJSON(data []byte) error + type StreamSettings struct + ExternalProxy []interface{} + Network string + RealitySettings RealitySettings + Security string + TcpSettings TcpSettings + func (ss *StreamSettings) UnmarshalJSON(data []byte) error + type TcpSettings struct + AcceptProxyProtocol bool + Header struct{ ... } + type XUIClient struct + func NewClient(host, username, password string, enableLogger bool) *XUIClient + func (c *XUIClient) AddClient(inboundId int, inboundClient *InboundClient) error + func (c *XUIClient) DeleteClient(inboundId int, clientUuid string) error + func (c *XUIClient) GetClientByEmail(email string) (*InboundClient, error) + func (c *XUIClient) GetInbound(inboundId int) (*Inbound, error) + func (c *XUIClient) GetInbounds() ([]*Inbound, error) + func (c *XUIClient) GetStatus() (*ServerStatus, error) + func (c *XUIClient) UpdateClient(inboundId int, clientUuid string, inboundClient *InboundClient) error + type XUICore struct + func (core *XUICore) ApiCall(method, endpoint string, data any, target any) error + func (core *XUICore) Get(endpoint string, target any) (int, error) + func (core *XUICore) Post(endpoint string, data any, target any) (int, error)