Documentation
¶
Index ¶
- type XrayController
- func (xrayCtl *XrayController) AddInbound(node *structures.NodeInfo) (err error)
- func (xrayCtl *XrayController) AddUsers(users *[]structures.UserInfo) (err error)
- func (xrayCtl *XrayController) Init(cfg *structures.BaseConfig) (err error)
- func (xrayCtl *XrayController) QueryUsersTraffic(users *[]structures.UserInfo) (usersTraffic *[]structures.UserTraffic, err error)
- func (xrayCtl *XrayController) RemoveInbound(node *structures.NodeInfo) (err error)
- func (xrayCtl *XrayController) RemoveUsers(users *[]structures.UserInfo) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XrayController ¶
type XrayController struct {
HsClient *command.HandlerServiceClient
SsClient *statsService.StatsServiceClient
CmdConn *grpc.ClientConn
}
func (*XrayController) AddInbound ¶
func (xrayCtl *XrayController) AddInbound(node *structures.NodeInfo) (err error)
func (*XrayController) AddUsers ¶
func (xrayCtl *XrayController) AddUsers(users *[]structures.UserInfo) (err error)
func (*XrayController) Init ¶
func (xrayCtl *XrayController) Init(cfg *structures.BaseConfig) (err error)
func (*XrayController) QueryUsersTraffic ¶
func (xrayCtl *XrayController) QueryUsersTraffic(users *[]structures.UserInfo) (usersTraffic *[]structures.UserTraffic, err error)
func (*XrayController) RemoveInbound ¶
func (xrayCtl *XrayController) RemoveInbound(node *structures.NodeInfo) (err error)
func (*XrayController) RemoveUsers ¶
func (xrayCtl *XrayController) RemoveUsers(users *[]structures.UserInfo) (err error)
Click to show internal directories.
Click to hide internal directories.