github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/main/commands/all/api/api.go (about) 1 package api 2 3 import ( 4 "github.com/xtls/xray-core/main/commands/base" 5 ) 6 7 // CmdAPI calls an API in an Xray process 8 var CmdAPI = &base.Command{ 9 UsageLine: "{{.Exec}} api", 10 Short: "Call an API in an Xray process", 11 Long: `{{.Exec}} {{.LongName}} provides tools to manipulate Xray via its API. 12 `, 13 Commands: []*base.Command{ 14 cmdRestartLogger, 15 cmdGetStats, 16 cmdQueryStats, 17 cmdSysStats, 18 cmdBalancerInfo, 19 cmdBalancerOverride, 20 cmdAddInbounds, 21 cmdAddOutbounds, 22 cmdRemoveInbounds, 23 cmdRemoveOutbounds, 24 cmdAddRules, 25 cmdRemoveRules, 26 cmdSourceIpBlock, 27 }, 28 }