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