2020-11-30 07:08:08 -05:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
2020-12-04 09:32:55 -05:00
|
|
|
"github.com/v2fly/v2ray-core/v4/main/commands/base"
|
2020-11-30 07:08:08 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// CmdAPI calls an API in an V2Ray process
|
|
|
|
var CmdAPI = &base.Command{
|
|
|
|
UsageLine: "{{.Exec}} api",
|
2021-02-21 10:02:42 -05:00
|
|
|
Short: "call V2Ray API",
|
2020-11-30 07:08:08 -05:00
|
|
|
Long: `{{.Exec}} {{.LongName}} provides tools to manipulate V2Ray via its API.
|
|
|
|
`,
|
|
|
|
Commands: []*base.Command{
|
2021-02-21 10:02:42 -05:00
|
|
|
cmdLog,
|
|
|
|
cmdStats,
|
2021-01-29 19:31:11 -05:00
|
|
|
cmdBalancerCheck,
|
|
|
|
cmdBalancerInfo,
|
|
|
|
cmdBalancerOverride,
|
2020-11-30 07:08:08 -05:00
|
|
|
cmdAddInbounds,
|
|
|
|
cmdAddOutbounds,
|
|
|
|
cmdRemoveInbounds,
|
|
|
|
cmdRemoveOutbounds,
|
|
|
|
},
|
|
|
|
}
|