mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-07 21:09:53 +00:00
18 lines
621 B
Go
18 lines
621 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)
|
|
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()
|
|
}
|