// 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() }