github.com/xraypb/Xray-core@v1.8.1/main/commands/all/api/api.go (about)

     1  package api
     2  
     3  import (
     4  	"github.com/xraypb/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  		cmdAddInbounds,
    19  		cmdAddOutbounds,
    20  		cmdRemoveInbounds,
    21  		cmdRemoveOutbounds,
    22  	},
    23  }