mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-28 14:56:33 -04:00
7c1ab06206
* remove v2ctl, wv2ray * remove v2ctl, wv2ray build scripts * remove infra/control/main * remove !confonly flag * remove ctlcmd package * remove Confgi.Override func * move commands package into main
24 lines
456 B
Go
24 lines
456 B
Go
package api
|
|
|
|
import (
|
|
"v2ray.com/core/main/commands/base"
|
|
)
|
|
|
|
// CmdAPI calls an API in an V2Ray process
|
|
var CmdAPI = &base.Command{
|
|
UsageLine: "{{.Exec}} api",
|
|
Short: "Call V2Ray API",
|
|
Long: `{{.Exec}} {{.LongName}} provides tools to manipulate V2Ray via its API.
|
|
`,
|
|
Commands: []*base.Command{
|
|
cmdRestartLogger,
|
|
cmdGetStats,
|
|
cmdQueryStats,
|
|
cmdSysStats,
|
|
cmdAddInbounds,
|
|
cmdAddOutbounds,
|
|
cmdRemoveInbounds,
|
|
cmdRemoveOutbounds,
|
|
},
|
|
}
|