Documentation
¶
Index ¶
- type Config
- func (c *Config) Adjust() error
- func (c *Config) GetClashSubList() ([]*sub.ClashSub, error)
- func (c *Config) GetMetricURL() string
- func (c *Config) LoadConfig(force bool) error
- func (c *Config) NeedStartRelayServer() bool
- func (c *Config) NeedStartWebServer() bool
- func (c *Config) NeedStartXrayServer() bool
- func (c *Config) NeedSyncFromServer() bool
- type SubConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PATH string
WebHost string `json:"web_host,omitempty"`
WebPort int `json:"web_port,omitempty"`
WebToken string `json:"web_token,omitempty"`
WebAuthUser string `json:"web_auth_user,omitempty"`
WebAuthPass string `json:"web_auth_pass,omitempty"`
LogLeveL string `json:"log_level,omitempty"`
EnablePing bool `json:"enable_ping,omitempty"`
ReloadInterval int `json:"reload_interval,omitempty"`
RelayConfigs []*conf.Config `json:"relay_configs"`
RelaySyncURL string `json:"relay_sync_url,omitempty"`
RelaySyncInterval int `json:"relay_sync_interval,omitempty"`
SubConfigs []*SubConfig `json:"sub_configs,omitempty"`
XRayConfig *xConf.Config `json:"xray_config,omitempty"`
SyncTrafficEndPoint string `json:"sync_traffic_endpoint,omitempty"`
// contains filtered or unexported fields
}
func (*Config) GetClashSubList ¶ added in v1.1.4
func (*Config) GetMetricURL ¶ added in v1.1.3
func (*Config) LoadConfig ¶
func (*Config) NeedStartRelayServer ¶ added in v1.1.4
func (*Config) NeedStartWebServer ¶ added in v1.1.3
func (*Config) NeedStartXrayServer ¶ added in v1.1.4
func (*Config) NeedSyncFromServer ¶ added in v1.1.4
Click to show internal directories.
Click to hide internal directories.