MCPcopy Create free account
hub / github.com/PasarGuard/node / Backend

Interface Backend

backend/backend.go:9–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7)
8
9type 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
26type ConfigKey struct{}
27

Callers 54

BaseInfoResponseMethod · 0.65
checkBackendStatusFunction · 0.65
checkXrayStatusMethod · 0.65
checkXrayHealthMethod · 0.65
StartedMethod · 0.65
GetOutboundsLatencyMethod · 0.65
BaseInfoResponseMethod · 0.65
VersionMethod · 0.65
GetLogsMethod · 0.65
GetLogsMethod · 0.65

Implementers 2

WireGuardbackend/wireguard/wireguard.go
Xraybackend/xray/xray.go

Calls

no outgoing calls

Tested by

no test coverage detected