Documentation
¶
Index ¶
- func AddIpTablesRules(v2rayXPlusConfig *conf.V2rayXPlusConfig) error
- func CopyConfigToEtc(config, group string) bool
- func CopyFile(src, target string) error
- func GetConfigName(group string) (name, path string)
- func GetSu() string
- func GetTargetConfig(config, group string) (*conf.V2rayConfig, error)
- func GetVension() (string, error)
- func InitIpTables()
- func RemoveIpTablesRules() error
- func RestartService(service string) bool
- func RestartV2rayXPlusSerive(config, group string) bool
- func StartService(service string) bool
- func StartV2ray() error
- func StartV2rayXPlusSerive(config, group string) bool
- func StatusService(service string) (exited, enable bool)
- func StatusV2rayXPlusSerive() (exited, enable bool)
- func StopService(service string) bool
- func StopV2ray() error
- func StopV2rayXPlusSerive() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIpTablesRules ¶
func AddIpTablesRules(v2rayXPlusConfig *conf.V2rayXPlusConfig) error
func CopyConfigToEtc ¶
func GetConfigName ¶
func GetTargetConfig ¶
func GetTargetConfig(config, group string) (*conf.V2rayConfig, error)
func GetVension ¶
func InitIpTables ¶
func InitIpTables()
func RemoveIpTablesRules ¶
func RemoveIpTablesRules() error
func RestartService ¶
func RestartV2rayXPlusSerive ¶
func StartService ¶
func StartV2ray ¶
func StartV2ray() error
func StartV2rayXPlusSerive ¶
func StatusService ¶
func StatusV2rayXPlusSerive ¶
func StatusV2rayXPlusSerive() (exited, enable bool)
func StopService ¶
func StopV2rayXPlusSerive ¶
func StopV2rayXPlusSerive() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.