mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 21:26:07 +03:00
53e5814d19
* add RuleTag to routing rules * add router pb commands * add and remove routing rules api * cleanup * fix * improve error msg * add append flag apply balancer config
28 lines
556 B
Go
28 lines
556 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,
|
|
cmdBalancerInfo,
|
|
cmdBalancerOverride,
|
|
cmdAddInbounds,
|
|
cmdAddOutbounds,
|
|
cmdRemoveInbounds,
|
|
cmdRemoveOutbounds,
|
|
cmdAddRules,
|
|
cmdRemoveRules,
|
|
},
|
|
}
|