Documentation
¶
Index ¶
- func ActiveNode(remoteAddr string, globalProxy bool) []byte
- func CopyV2ray(oldConFile, newConFile string, localPort int) []byte
- func DeleteV2ray(pid int) []byte
- func GetNodes(domain string) []byte
- func GetTpl() *gtpl.Gtpl
- func GetV2rayList() []byte
- func NewWebServer(webPort int) *web.EasyServer
- func RestartV2ray(pid int, configFile string) []byte
- func RunV2ray(fpath, msg string) []byte
- func StartNodes() []byte
- func TestNodes(testurl string) []byte
- func TplInclude(fpath string, data any) string
- func UnActiveNode(remoteAddr string) []byte
- func UpdateConf(dt map[string]string, fpath string) []byte
- func UpdateV2rayRoutingRules(dt RequestRoutingRules) []byte
- type BaseResult
- type HomePageData
- type ListData
- type RequestActiveNode
- type RequestRoutingRules
- type V2rayServerData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActiveNode ¶
ActiveNode 启用一个远程节点作为系统代理
func DeleteV2ray ¶ added in v1.3.0
func GetV2rayList ¶ added in v1.3.0
func GetV2rayList() []byte
func NewWebServer ¶ added in v1.3.0
func NewWebServer(webPort int) *web.EasyServer
func RestartV2ray ¶ added in v1.3.0
func StartNodes ¶
func StartNodes() []byte
func TplInclude ¶ added in v1.3.0
func UnActiveNode ¶
func UpdateConf ¶ added in v1.3.0
UpdateConf 更改.env配置文件
func UpdateV2rayRoutingRules ¶ added in v1.3.0
func UpdateV2rayRoutingRules(dt RequestRoutingRules) []byte
UpdateV2rayRoutingRules 更改配置文件的路由规则 更改 .env文件。删除 routing.rules.json 文件。
Types ¶
type BaseResult ¶
func (BaseResult) Bytes ¶
func (b BaseResult) Bytes() []byte
func (*BaseResult) Fail ¶
func (b *BaseResult) Fail(msg string, code int)
func (BaseResult) String ¶
func (b BaseResult) String() string
func (*BaseResult) Success ¶
func (b *BaseResult) Success(msg string)
type HomePageData ¶ added in v1.3.0
type ListData ¶
type ListData struct {
BaseResult
Data any `json:"data"`
Count int `json:"count"`
}
func NewListData ¶
type RequestActiveNode ¶ added in v1.3.0
type RequestRoutingRules ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.