V2bX/api/api.go

15 lines
445 B
Go
Raw Normal View History

2022-06-01 13:35:41 -04:00
// 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()
}