Add files via upload

This commit is contained in:
pocketW
2022-04-27 14:01:18 +10:00
committed by GitHub
commit 05ec5660cf
77 changed files with 23999 additions and 0 deletions

17
api/api.go Normal file
View File

@@ -0,0 +1,17 @@
// 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)
ReportNodeStatus(nodeStatus *NodeStatus) (err error)
ReportNodeOnlineUsers(onlineUser *[]OnlineUser) (err error)
ReportUserTraffic(userTraffic *[]UserTraffic) (err error)
Describe() ClientInfo
GetNodeRule() (ruleList *[]DetectRule, err error)
ReportIllegal(detectResultList *[]DetectResult) (err error)
Debug()
}