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

Method QueryKeys

federationapi/internal/federationclient.go:56–66  ·  view source on GitHub ↗
(
	ctx context.Context, s gomatrixserverlib.ServerName, keys map[string][]string,
)

Source from the content-addressed store, hash-verified

54}
55
56func (a *FederationInternalAPI) QueryKeys(
57 ctx context.Context, s gomatrixserverlib.ServerName, keys map[string][]string,
58) (gomatrixserverlib.RespQueryKeys, error) {
59 ires, err := a.doRequestIfNotBackingOffOrBlacklisted(s, func() (interface{}, error) {
60 return a.federation.QueryKeys(ctx, s, keys)
61 })
62 if err != nil {
63 return gomatrixserverlib.RespQueryKeys{}, err
64 }
65 return ires.(gomatrixserverlib.RespQueryKeys), nil
66}
67
68func (a *FederationInternalAPI) Backfill(
69 ctx context.Context, s gomatrixserverlib.ServerName, roomID string, limit int, eventIDs []string,

Callers

nothing calls this directly

Calls 2

QueryKeysMethod · 0.65

Tested by

no test coverage detected