MCPcopy Index your code
hub / github.com/PasarGuard/node / SyncUsers

Method SyncUsers

controller/rpc/user.go:37–43  ·  view source on GitHub ↗
(ctx context.Context, users *common.Users)

Source from the content-addressed store, hash-verified

35}
36
37func (s *Service) SyncUsers(ctx context.Context, users *common.Users) (*common.Empty, error) {
38 if err := s.Backend().SyncUsers(ctx, users.GetUsers()); err != nil {
39 return nil, err
40 }
41
42 return nil, nil
43}
44
45func (s *Service) SyncUsersChunked(stream grpc.ClientStreamingServer[common.UsersChunk, common.Empty]) error {
46 chunks := make(map[uint64][]*common.User)

Callers

nothing calls this directly

Implementers 1

Controllercontroller/controller.go

Calls 3

BackendMethod · 0.80
SyncUsersMethod · 0.65
GetUsersMethod · 0.45

Tested by

no test coverage detected