Documentation
¶
Index ¶
- func CheckConfig(path string) error
- func ConvertConfig(inputPath, outputPath string) error
- func DetectConfigType(path string) string
- func EditConfigFile(path string) error
- func GenDefaultConfigJson(outputPath string) error
- func GenDefaultConfigToml(outputPath string) error
- func PrettyPrintConfig(config *Config)
- func SaveConfigToJson(config *Config, path string) error
- func SaveConfigToToml(config *Config, path string) error
- type Config
- type LoginIP
- type LoginInterface
- type LoginUPnP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfig ¶
func ConvertConfig ¶
func DetectConfigType ¶
func EditConfigFile ¶
func GenDefaultConfigJson ¶
func GenDefaultConfigToml ¶
func PrettyPrintConfig ¶
func PrettyPrintConfig(config *Config)
func SaveConfigToJson ¶
func SaveConfigToToml ¶
Types ¶
type Config ¶
type Config struct {
CronExp *string `json:"cron_exp" toml:"cron_exp"`
RetryInterval *int `json:"retry_interval" toml:"retry_interval"`
RetryTimes *int `json:"retry_times" toml:"retry_times"`
LogFile *string `json:"log_file" toml:"log_file"`
LogLevel *string `json:"log_level" toml:"log_level"`
LoginIP []LoginIP `json:"login_ip" toml:"login_ip"`
LoginInterface []LoginInterface `json:"login_interface" toml:"login_interface"`
LoginUPnP []LoginUPnP `json:"login_upnp" toml:"login_upnp"`
}
func LoadConfig ¶
type LoginInterface ¶
Click to show internal directories.
Click to hide internal directories.