mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-07-21 02:17:58 +00:00
Add files via upload
This commit is contained in:
17
api/api.go
Normal file
17
api/api.go
Normal 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()
|
||||
}
|
Reference in New Issue
Block a user