Versions in this module Expand all Collapse all v1 v1.0.2 Oct 14, 2026 Changes in this version + func PublicProxyAddress(raw string) bool + func ValidateMemberOutbounds(raw json.RawMessage, tags []string) error + type AgentHello struct + AgentID string + BinarySHA256 string + BootID string + Capabilities []string + ConfigRevision uint64 + Platform string + Ready bool + UpgradePending bool + Version string + XrayVersion string type Config + MemberOutbounds []string + type TelemetryReport struct + AgentID string + BootID string + Certificates json.RawMessage + ConfigRevision uint64 + Connected bool + Liveness bool + Machine json.RawMessage + Ready bool + Synchronized bool + Time time.Time + TransportDropped uint64 + Users UserMetrics + type Traffic map[int][2]uint64 + type TrafficBarrier struct + AccountingPeriod string + AgentID string + Quiesced bool + Sequence uint64 + Through time.Time + type TrafficFlush struct + AccountingPeriod string + Quiesce bool + UserID int + type TrafficReport struct + ID string + Samples []TrafficSample + Traffic Traffic + type TrafficSample struct + AccountingPeriod string + DownloadBytes uint64 + From time.Time + Through time.Time + UploadBytes uint64 + UserID int type User + AccountingPeriod string + ValidUntil *time.Time + type UserLimitStatus struct + Limited bool + Reason string + Scope string + UserID int + type UserMetrics struct + ActiveIPs map[int][]string + Connections map[int]int + Rates map[int]UserRate + Rejections map[string]uint64 + Speed map[int]UserSpeedStatus + Status map[int]UserLimitStatus + type UserRate struct + DownloadBytesPerSecond float64 + SampleSeconds float64 + UploadBytesPerSecond float64 + type UserSpeedStatus struct + ActiveMbps int + BurstMbps int + Limited bool + NormalMbps int v1.0.1 Oct 14, 2026 Changes in this version + const MaxFrameBytes + const Version + var CommandNames = []string + var MasterMessageTypes = []string + func Clone[T any](value T) T + func Decode(b []byte, out any) error + func Schema(value any) map[string]any + func Schemas() map[string]any + func UserEmail(u User, tag string) string + func ValidName(s string) bool + func ValidateUsers(users []User) error + type Certificate struct + Config config.CertConfig + Provider string + type Config struct + AssetHashes map[string]string + BlockedPorts []PortRange + Certificates map[string]Certificate + DDNS []DDNSJob + DNS DNSPolicy + Firewall FirewallPolicy + InboundCertificates map[string]string + Providers map[string]Provider + Telemetry TelemetryPolicy + Torrent TorrentPolicy + Updates UpdatePolicy + Users []User + Xray json.RawMessage + func ParseConfig(b []byte) (Config, error) + func (c Config) BanDuration() time.Duration + func (c Config) ReportInterval() time.Duration + func (c Config) SampleInterval() time.Duration + func (c Config) Validate() error + type DDNSJob struct + ID string + IPv4 string + IPv4URL string + IPv6 string + IPv6URL string + Interface string + IntervalSeconds int + Name string + Provider string + TTLSeconds int + Zone string + type DNSPolicy struct + Mode string + Redirect bool + Upstreams []string + type FirewallPolicy struct + AllowPrefixes []string + Enabled bool + Forward []Forward + Protect bool + SSHPorts []int + TCPPorts []int + UDPPorts []int + type Forward struct + ListenIP string + Network string + Port int + TargetIP string + TargetPort int + type IPBlock struct + SourceIP string + Until time.Time + UserID int + type IPControl struct + BlockSeconds int + Drop bool + SourceIP string + Unblock bool + UserID int + type Message struct + BaseRevision uint64 + Data json.RawMessage + ID string + Revision uint64 + Type string + V int + func New(typ, id string, revision uint64, data any) Message + func Parse(b []byte) (Message, error) + type PortRange struct + From int + Network string + To int + type Provider struct + Credentials map[string]string + Type string + type TelemetryPolicy struct + IncludeActiveIPs bool + ReportSeconds int + SampleSeconds int + type TorrentPolicy struct + BanSeconds int + Enabled bool + type UpdatePolicy struct + Enabled bool + Version string + type User struct + ActiveIPLimit int + BlockNew bool + BurstSpeedLimitMbps int + ConnectionLimit int + Credentials map[string]json.RawMessage + ID int + InboundTags []string + SpeedLimitAfterSeconds int + SpeedLimitMbps int + SpeedLimitResetSeconds int + UUID string + type UserControl struct + BlockNew bool + ID int + func (u *UserControl) UnmarshalJSON(b []byte) error + type UserControls struct + Users []UserControl + type UsersDelta struct + Remove []int + Upsert []User + type UsersSync struct + Users *[]User