| 7 | ) |
| 8 | |
| 9 | type Backend interface { |
| 10 | Started() bool |
| 11 | Version() string |
| 12 | Logs() <-chan string |
| 13 | Restart() error |
| 14 | Shutdown() |
| 15 | SyncUser(context.Context, *common.User) error |
| 16 | SyncUsers(context.Context, []*common.User) error |
| 17 | UpdateUsers(context.Context, []*common.User) error |
| 18 | UpdateUsersAndRestart(context.Context, []*common.User) error |
| 19 | GetSysStats(context.Context) (*common.BackendStatsResponse, error) |
| 20 | GetStats(context.Context, *common.StatRequest) (*common.StatResponse, error) |
| 21 | GetOutboundsLatency(context.Context, *common.LatencyRequest) (*common.LatencyResponse, error) |
| 22 | GetUserOnlineStats(context.Context, string) (*common.OnlineStatResponse, error) |
| 23 | GetUserOnlineIpListStats(context.Context, string) (*common.StatsOnlineIpListResponse, error) |
| 24 | } |
| 25 | |
| 26 | type ConfigKey struct{} |
| 27 |
no outgoing calls
no test coverage detected