mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-02-02 14:58:14 -05:00
15 lines
445 B
Go
15 lines
445 B
Go
|
// Package api contains all the api used by XrayR
|
||
|
// To implement an api , one needs to implement the interface below.
|
||
|
|
||
|
package api
|
||
|
|
||
|
// API is the interface for different panel's api.
|
||
|
type API interface {
|
||
|
GetNodeInfo() (nodeInfo *NodeInfo, err error)
|
||
|
GetUserList() (userList *[]UserInfo, err error)
|
||
|
ReportUserTraffic(userTraffic *[]UserTraffic) (err error)
|
||
|
Describe() ClientInfo
|
||
|
GetNodeRule() (ruleList *[]DetectRule, err error)
|
||
|
Debug()
|
||
|
}
|