Documentation ¶
Index ¶
- func ClaimOneTimeKeys(ctx context.Context, claimRq *external.PostClaimKeysRequest, ...) (int, core.Coder)
- func QueryOneTimeKeys(userID, deviceID string, cache service.Cache) interface{}
- func QueryPKeys(ctx context.Context, queryRq *external.PostQueryKeysRequest, deviceID string, ...) (int, core.Coder)
- func UploadPKeys(ctx context.Context, keyBody *types.UploadEncrypt, ...) (int, core.Coder)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimOneTimeKeys ¶
func ClaimOneTimeKeys( ctx context.Context, claimRq *external.PostClaimKeysRequest, cache service.Cache, encryptionDB model.EncryptorAPIDatabase, rpcClient *common.RpcClient, ) (int, core.Coder)
ClaimOneTimeKeys claim for one time key that may be used in session exchange in olm encryption
func QueryOneTimeKeys ¶
QueryOneTimeKeys todo: complete this field through claim type
func QueryPKeys ¶
func QueryPKeys( ctx context.Context, queryRq *external.PostQueryKeysRequest, deviceID string, cache service.Cache, federation *gomatrixserverlib.FederationClient, serverName []string, ) (int, core.Coder)
QueryPKeys this function is for user query other's device key
func UploadPKeys ¶
func UploadPKeys( ctx context.Context, keyBody *types.UploadEncrypt, encryptionDB model.EncryptorAPIDatabase, device *authtypes.Device, cache service.Cache, rpcClient *common.RpcClient, syncDB model.SyncAPIDatabase, idg *uid.UidGenerator, ) (int, core.Coder)
UploadPKeys this function is for user upload his device key, and one-time-key to a limit at 50 set as default
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.