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

Interface ClientKeyAPI

keyserver/api/api.go:40–47  ·  view source on GitHub ↗

API functions required by the clientapi

Source from the content-addressed store, hash-verified

38
39// API functions required by the clientapi
40type ClientKeyAPI interface {
41 QueryKeys(ctx context.Context, req *QueryKeysRequest, res *QueryKeysResponse)
42 PerformUploadKeys(ctx context.Context, req *PerformUploadKeysRequest, res *PerformUploadKeysResponse)
43 PerformUploadDeviceKeys(ctx context.Context, req *PerformUploadDeviceKeysRequest, res *PerformUploadDeviceKeysResponse)
44 PerformUploadDeviceSignatures(ctx context.Context, req *PerformUploadDeviceSignaturesRequest, res *PerformUploadDeviceSignaturesResponse)
45 // PerformClaimKeys claims one-time keys for use in pre-key messages
46 PerformClaimKeys(ctx context.Context, req *PerformClaimKeysRequest, res *PerformClaimKeysResponse)
47}
48
49// API functions required by the userapi
50type UserKeyAPI interface {

Callers 10

AddRoutesFunction · 0.65
QueryKeysFunction · 0.65
AddRoutesFunction · 0.65
AddRoutesFunction · 0.65
ClaimKeysFunction · 0.65
ClaimOneTimeKeysFunction · 0.65

Implementers 3

KeyInternalAPIkeyserver/internal/internal.go
httpKeyInternalAPIkeyserver/inthttp/client.go
mockKeyAPIsyncapi/internal/keychange_test.go

Calls

no outgoing calls

Tested by

no test coverage detected