Versions in this module Expand all Collapse all v1 v1.1.1 Feb 22, 2024 Changes in this version + type ApiConfig struct + APIHost string + Key string + NodeID int + NodeType string + RuleListPath string + Timeout int + type CertConfig struct + CertDomain string + CertFile string + CertMode string + DNSEnv map[string]string + Email string + KeyFile string + Provider string + RejectUnknownSni bool + func NewCertConfig() *CertConfig + type Conf struct + CoresConfig []CoreConfig + LogConfig LogConfig + NodeConfig []NodeConfig + func New() *Conf + func (p *Conf) LoadFromPath(filePath string) error + func (p *Conf) Watch(filePath, xDnsPath string, sDnsPath string, reload func()) error + type CoreConfig struct + Name string + SingConfig *SingConfig + Type string + XrayConfig *XrayConfig + func (c *CoreConfig) UnmarshalJSON(b []byte) error + type DynamicSpeedLimitConfig struct + ExpireTime int + Periodic int + SpeedLimit int + Traffic int64 + type FallBack struct + Server string + ServerPort string + type FallBackConfigForSing struct + FallBack FallBack + FallBackForALPN map[string]FallBack + type FallBackConfigForXray struct + Alpn string + Dest string + Path string + ProxyProtocolVer uint64 + SNI string + type IpReportConfig struct + EnableIpSync bool + Periodic int + RecorderConfig *RecorderConfig + RedisConfig *RedisConfig + Type string + type LimitConfig struct + ConnLimit int + DynamicSpeedLimitConfig *DynamicSpeedLimitConfig + EnableDynamicSpeedLimit bool + EnableIpRecorder bool + EnableRealtime bool + IPLimit int + IpRecorderConfig *IpReportConfig + SpeedLimit int + type LogConfig struct + Level string + Output string + type NodeConfig struct + ApiConfig ApiConfig + Options Options + func (n *NodeConfig) UnmarshalJSON(data []byte) (err error) + type Options struct + CertConfig *CertConfig + Core string + CoreName string + DeviceOnlineMinTraffic int64 + LimitConfig LimitConfig + ListenIP string + Name string + RawOptions json.RawMessage + SendIP string + SingOptions *SingOptions + XrayOptions *XrayOptions + func (o *Options) UnmarshalJSON(data []byte) error + type RecorderConfig struct + Timeout int + Token string + Url string + type RedisConfig struct + Address string + Db int + Expiry int + Password string + type SingConfig struct + DnsConfigPath string + EnableConnClear bool + LogConfig SingLogConfig + NtpConfig SingNtpConfig + OriginalPath string + func NewSingConfig() *SingConfig + type SingLogConfig struct + Disabled bool + Level string + Output string + Timestamp bool + type SingNtpConfig struct + Enable bool + Server string + ServerPort uint16 + type SingOptions struct + DomainStrategy option.DomainStrategy + EnableDNS bool + EnableProxyProtocol bool + FallBackConfigs *FallBackConfigForSing + SniffEnabled bool + SniffOverrideDestination bool + TCPFastOpen bool + func NewSingOptions() *SingOptions + type XrayConfig struct + AssetPath string + ConnectionConfig *XrayConnectionConfig + DnsConfigPath string + InboundConfigPath string + LogConfig *XrayLogConfig + OutboundConfigPath string + RouteConfigPath string + func NewXrayConfig() *XrayConfig + type XrayConnectionConfig struct + BufferSize int32 + ConnIdle uint32 + DownlinkOnly uint32 + Handshake uint32 + UplinkOnly uint32 + type XrayLogConfig struct + AccessPath string + ErrorPath string + Level string + type XrayOptions struct + DNSType string + DisableIVCheck bool + DisableSniffing bool + EnableDNS bool + EnableFallback bool + EnableProxyProtocol bool + EnableTFO bool + EnableUot bool + FallBackConfigs []FallBackConfigForXray + func NewXrayOptions() *XrayOptions