2020-12-04 01:36:16 +00:00
|
|
|
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,
|
2024-02-18 03:51:37 +00:00
|
|
|
cmdBalancerInfo,
|
|
|
|
cmdBalancerOverride,
|
2020-12-04 01:36:16 +00:00
|
|
|
cmdAddInbounds,
|
|
|
|
cmdAddOutbounds,
|
|
|
|
cmdRemoveInbounds,
|
|
|
|
cmdRemoveOutbounds,
|
2024-11-03 04:25:23 +00:00
|
|
|
cmdInboundUser,
|
|
|
|
cmdInboundUserCount,
|
2024-03-29 15:17:36 +00:00
|
|
|
cmdAddRules,
|
|
|
|
cmdRemoveRules,
|
2024-03-31 04:29:15 +00:00
|
|
|
cmdSourceIpBlock,
|
2024-11-03 13:44:15 +00:00
|
|
|
cmdOnlineStats,
|
2020-12-04 01:36:16 +00:00
|
|
|
},
|
|
|
|
}
|