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

Method GetUserOnlineIpListStats

controller/rpc/stats.go:27–34  ·  view source on GitHub ↗
(ctx context.Context, request *common.StatRequest)

Source from the content-addressed store, hash-verified

25}
26
27func (s *Service) GetUserOnlineIpListStats(ctx context.Context, request *common.StatRequest) (*common.StatsOnlineIpListResponse, error) {
28 stats, err := s.Backend().GetUserOnlineIpListStats(ctx, request.GetName())
29 if err != nil {
30 err = common.InterceptNotFound(err)
31 return nil, err
32 }
33 return stats, nil
34}
35
36func (s *Service) GetBackendStats(ctx context.Context, _ *common.Empty) (*common.BackendStatsResponse, error) {
37 return s.Backend().GetSysStats(ctx)

Callers

nothing calls this directly

Implementers 1

Controllercontroller/controller.go

Calls 4

InterceptNotFoundFunction · 0.92
BackendMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected