routing

package
v0.0.0-...-9835270 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

func QueryOneTimeKeys(
	userID, deviceID string,
	cache service.Cache,
) interface{}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL