(ctx context.Context, req *api.QueryKeyChangesRequest, res *api.QueryKeyChangesResponse)
| 49 | } |
| 50 | |
| 51 | func (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 | |
| 62 | func (a *KeyInternalAPI) PerformUploadKeys(ctx context.Context, req *api.PerformUploadKeysRequest, res *api.PerformUploadKeysResponse) { |
| 63 | res.KeyErrors = make(map[string]map[string]*api.KeyError) |
nothing calls this directly
no test coverage detected