This commit is contained in:
yuzuki999
2022-06-02 01:35:41 +08:00
commit 358b5888b4
76 changed files with 47129 additions and 0 deletions

14
api/api.go Normal file
View File

@@ -0,0 +1,14 @@
// 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()
}