mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-18 04:53:02 +00:00
24 lines
481 B
Go
24 lines
481 B
Go
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,
|
|
},
|
|
}
|