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

Method KeyError

keyserver/api/api.go:216–221  ·  view source on GitHub ↗

KeyError sets a key error field on KeyErrors

(userID, deviceID string, err *KeyError)

Source from the content-addressed store, hash-verified

214
215// KeyError sets a key error field on KeyErrors
216func (r *PerformUploadKeysResponse) KeyError(userID, deviceID string, err *KeyError) {
217 if r.KeyErrors[userID] == nil {
218 r.KeyErrors[userID] = make(map[string]*KeyError)
219 }
220 r.KeyErrors[userID][deviceID] = err
221}
222
223type PerformClaimKeysRequest struct {
224 // Map of user_id to device_id to algorithm name

Callers 2

uploadLocalDeviceKeysMethod · 0.80
uploadOneTimeKeysMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected