mirror of https://github.com/XTLS/Xray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
481 B
24 lines
481 B
4 years ago
|
package api
|
||
|
|
||
|
import (
|
||
|
"github.com/xtls/xray-core/main/commands/base"
|
||
|
)
|
||
|
|
||
|
// CmdAPI calls an API in an Xray process
|
||
|
var CmdAPI = &base.Command{
|
||
|
UsageLine: "{{.Exec}} api",
|
||
|
Short: "Call an API in an Xray process",
|
||
|
Long: `{{.Exec}} {{.LongName}} provides tools to manipulate Xray via its API.
|
||
|
`,
|
||
|
Commands: []*base.Command{
|
||
|
cmdRestartLogger,
|
||
|
cmdGetStats,
|
||
|
cmdQueryStats,
|
||
|
cmdSysStats,
|
||
|
cmdAddInbounds,
|
||
|
cmdAddOutbounds,
|
||
|
cmdRemoveInbounds,
|
||
|
cmdRemoveOutbounds,
|
||
|
},
|
||
|
}
|