github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/main/commands/all/api/api.go (about) 1 package api 2 3 import ( 4 "github.com/xmplusdev/xmcore/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 }