Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyDatabase ¶
type KeyDatabase struct {
// contains filtered or unexported fields
}
A Database implements gomatrixserverlib.KeyDatabase and is used to store the public keys for other matrix servers.
func NewKeyDatabase ¶
func NewKeyDatabase(inner gomatrixserverlib.KeyDatabase, cache caching.ServerKeyCache) (*KeyDatabase, error)
func (*KeyDatabase) FetchKeys ¶
func (d *KeyDatabase) FetchKeys( ctx context.Context, requests map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.Timestamp, ) (map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.PublicKeyLookupResult, error)
FetchKeys implements gomatrixserverlib.KeyDatabase
func (KeyDatabase) FetcherName ¶
func (d KeyDatabase) FetcherName() string
FetcherName implements KeyFetcher
func (*KeyDatabase) StoreKeys ¶
func (d *KeyDatabase) StoreKeys( ctx context.Context, keyMap map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.PublicKeyLookupResult, ) error
StoreKeys implements gomatrixserverlib.KeyDatabase
Click to show internal directories.
Click to hide internal directories.