core

package
v0.0.0-...-169c8c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2022 License: GPL-3.0 Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIpTablesRules

func AddIpTablesRules(v2rayXPlusConfig *conf.V2rayXPlusConfig) error

func CopyConfigToEtc

func CopyConfigToEtc(config, group string) bool

func CopyFile

func CopyFile(src, target string) error

func GetConfigName

func GetConfigName(group string) (name, path string)

func GetSu

func GetSu() string

func GetTargetConfig

func GetTargetConfig(config, group string) (*conf.V2rayConfig, error)

func GetVension

func GetVension() (string, error)

func InitIpTables

func InitIpTables()

func RemoveIpTablesRules

func RemoveIpTablesRules() error

func RestartService

func RestartService(service string) bool

func RestartV2rayXPlusSerive

func RestartV2rayXPlusSerive(config, group string) bool

func StartService

func StartService(service string) bool

func StartV2ray

func StartV2ray() error

func StartV2rayXPlusSerive

func StartV2rayXPlusSerive(config, group string) bool

func StatusService

func StatusService(service string) (exited, enable bool)

func StatusV2rayXPlusSerive

func StatusV2rayXPlusSerive() (exited, enable bool)

func StopService

func StopService(service string) bool

func StopV2ray

func StopV2ray() error

func StopV2rayXPlusSerive

func StopV2rayXPlusSerive() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL