Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Form *srun.LoginForm Meta *srun.LoginMeta Settings *SettingsConf Timeout time.Duration )
View Source
var BackoffConfig backoff.Conf
View Source
var Logger *log.Logger
Functions ¶
This section is empty.
Types ¶
type BackoffConf ¶ added in v1.6.1
type BackoffConf struct {
Enable bool `json:"enable" yaml:"enable"`
MaxRetries uint `json:"max_retries" yaml:"max_retries"`
InitialDuration uint `json:"initial_duration" yaml:"initial_duration"`
MaxDuration uint `json:"max_duration" yaml:"max_duration"`
ExponentFactor uint `json:"exponent_factor" yaml:"exponent_factor"`
InterConstFactor uint `json:"inter_const_factor" yaml:"inter_const_factor"`
OuterConstFactor uint `json:"outer_const_factor" yaml:"outer_const_factor"`
}
type ConfFromFile ¶
type ConfFromFile struct {
Form srun.LoginForm `json:"form" yaml:"form"`
Meta srun.LoginMeta `json:"meta" yaml:"meta"`
Settings SettingsConf `json:"settings" yaml:"settings"`
}
type DdnsConf ¶
type DdnsConf struct {
Enable bool `json:"enable" yaml:"enable"`
TTL uint `json:"ttl" yaml:"ttl"`
Domain string `json:"domain" yaml:"domain"`
Provider string `json:"provider" yaml:"provider"`
Config DdnsProviderConfigSum `json:"config" yaml:"config"`
}
type DdnsProviderConfigSum ¶ added in v1.5.2
type DdnsProviderConfigSum struct {
dnspod.DnsPod `yaml:",inline"`
cloudflare.Cloudflare `yaml:",inline"`
aliyun.Aliyun `yaml:",inline"`
}
type GuardianConf ¶
type RealityConf ¶ added in v1.5.1
type SettingsConf ¶
type SettingsConf struct {
Basic BasicConf `json:"basic" yaml:"basic"`
Guardian GuardianConf `json:"guardian" yaml:"guardian"`
Backoff BackoffConf `json:"backoff" yaml:"backoff"`
Log LogConf `json:"log" yaml:"log"`
DDNS DdnsConf `json:"ddns" yaml:"ddns"`
Reality RealityConf `json:"reality" yaml:"reality"`
CustomHeader map[string]interface{} `json:"custom_header" yaml:"custom_header"`
}
Click to show internal directories.
Click to hide internal directories.