Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiConfig ¶ added in v0.2.2
type ApiConfig struct { APIHost string `mapstructure:"ApiHost"` NodeID int `mapstructure:"NodeID"` Key string `mapstructure:"ApiKey"` NodeType string `mapstructure:"NodeType"` EnableVless bool `mapstructure:"EnableVless"` EnableXTLS bool `mapstructure:"EnableXTLS"` Timeout int `mapstructure:"Timeout"` SpeedLimit float64 `mapstructure:"SpeedLimit"` DeviceLimit int `mapstructure:"DeviceLimit"` RuleListPath string `mapstructure:"RuleListPath"` DisableCustomConfig bool `mapstructure:"DisableCustomConfig"` }
type CertConfig ¶ added in v0.4.0
type CertConfig struct { CertMode string `mapstructure:"CertMode"` // none, file, http, dns RejectUnknownSni bool `mapstructure:"RejectUnknownSni"` CertDomain string `mapstructure:"CertDomain"` CertFile string `mapstructure:"CertFile"` KeyFile string `mapstructure:"KeyFile"` Provider string `mapstructure:"Provider"` // alidns, cloudflare, gandi, godaddy.... Email string `mapstructure:"Email"` DNSEnv map[string]string `mapstructure:"DNSEnv"` }
type Config ¶
type Config struct { LogConfig *LogConfig `mapstructure:"Log"` DnsConfigPath string `mapstructure:"DnsConfigPath"` InboundConfigPath string `mapstructure:"InboundConfigPath"` OutboundConfigPath string `mapstructure:"OutboundConfigPath"` RouteConfigPath string `mapstructure:"RouteConfigPath"` ConnetionConfig *ConnetionConfig `mapstructure:"ConnetionConfig"` NodesConfig []*NodesConfig `mapstructure:"Nodes"` }
type ConnetionConfig ¶
type ControllerConfig ¶ added in v0.4.0
type ControllerConfig struct { ListenIP string `mapstructure:"ListenIP"` SendIP string `mapstructure:"SendIP"` UpdatePeriodic int `mapstructure:"UpdatePeriodic"` EnableDNS bool `mapstructure:"EnableDNS"` DNSType string `mapstructure:"DNSType"` DisableUploadTraffic bool `mapstructure:"DisableUploadTraffic"` DisableGetRule bool `mapstructure:"DisableGetRule"` EnableProxyProtocol bool `mapstructure:"EnableProxyProtocol"` EnableFallback bool `mapstructure:"EnableFallback"` DisableIVCheck bool `mapstructure:"DisableIVCheck"` DisableSniffing bool `mapstructure:"DisableSniffing"` FallBackConfigs []*FallBackConfig `mapstructure:"FallBackConfigs"` CertConfig *CertConfig `mapstructure:"CertConfig"` }
type FallBackConfig ¶ added in v0.4.0
type NodeConfig ¶ added in v0.4.0
type NodeConfig struct { ApiConfig *ApiConfig `mapstructure:"ApiConfig"` ControllerConfig *ControllerConfig `mapstructure:"ControllerConfig"` }
type NodesConfig ¶
type NodesConfig struct { PanelType string `mapstructure:"PanelType"` ApiConfig *api.Config `mapstructure:"ApiConfig"` ControllerConfig *controller.Config `mapstructure:"ControllerConfig"` }
Click to show internal directories.
Click to hide internal directories.