keydb

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeyRing

CreateKeyRing creates and configures a KeyRing object.

It creates the necessary key fetchers and collects them into a KeyRing backed by the given KeyDatabase.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

A Database implements gomatrixserverlib.KeyDatabase and is used to store the public keys for other matrix servers.

func NewDatabase

func NewDatabase(driver, address string) (*Database, error)

NewDatabase prepares a new key database. It creates the necessary tables if they don't already exist. It prepares all the SQL statements that it will use. Returns an error if there was a problem talking to the database.

func (*Database) FetchKeys

FetchKeys implements gomatrixserverlib.KeyDatabase

func (Database) FetcherName

func (d Database) FetcherName() string

FetcherName implements KeyFetcher

func (*Database) StoreKeys

StoreKeys implements gomatrixserverlib.KeyDatabase

Jump to

Keyboard shortcuts

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