MCPcopy Create free account
hub / github.com/daodst/chat / QueryKeyChanges

Method QueryKeyChanges

keyserver/internal/internal.go:51–60  ·  view source on GitHub ↗
(ctx context.Context, req *api.QueryKeyChangesRequest, res *api.QueryKeyChangesResponse)

Source from the content-addressed store, hash-verified

49}
50
51func (a *KeyInternalAPI) QueryKeyChanges(ctx context.Context, req *api.QueryKeyChangesRequest, res *api.QueryKeyChangesResponse) {
52 userIDs, latest, err := a.DB.KeyChanges(ctx, req.Offset, req.ToOffset)
53 if err != nil {
54 res.Error = &api.KeyError{
55 Err: err.Error(),
56 }
57 }
58 res.Offset = latest
59 res.UserIDs = userIDs
60}
61
62func (a *KeyInternalAPI) PerformUploadKeys(ctx context.Context, req *api.PerformUploadKeysRequest, res *api.PerformUploadKeysResponse) {
63 res.KeyErrors = make(map[string]map[string]*api.KeyError)

Callers

nothing calls this directly

Calls 2

KeyChangesMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected