mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 08:54:10 +00:00
v1.1.0
This commit is contained in:
parent
ed8d6d743c
commit
16544c18ab
627 changed files with 3247 additions and 2635 deletions
23
main/commands/all/api/api.go
Normal file
23
main/commands/all/api/api.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
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,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue