XrayAPI

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL