mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 22:22:46 +00:00
Update gomatrixserverlib (#89)
This commit is contained in:
parent
a1ce351d36
commit
0309035aad
17 changed files with 1355 additions and 71 deletions
|
@ -14,7 +14,10 @@
|
|||
|
||||
package config
|
||||
|
||||
import "golang.org/x/crypto/ed25519"
|
||||
import (
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
"golang.org/x/crypto/ed25519"
|
||||
)
|
||||
|
||||
// ClientAPI contains the config information necessary to spin up a clientapi process.
|
||||
type ClientAPI struct {
|
||||
|
@ -24,7 +27,7 @@ type ClientAPI struct {
|
|||
PrivateKey ed25519.PrivateKey
|
||||
// An arbitrary string used to uniquely identify the PrivateKey. Must start with the
|
||||
// prefix "ed25519:".
|
||||
KeyID string
|
||||
KeyID gomatrixserverlib.KeyID
|
||||
// A list of URIs to send events to. These kafka logs should be consumed by a Room Server.
|
||||
KafkaProducerURIs []string
|
||||
// The topic for events which are written to the logs.
|
||||
|
|
|
@ -111,7 +111,7 @@ func buildAndOutput() gomatrixserverlib.EventReference {
|
|||
eventID++
|
||||
id := fmt.Sprintf("$%d:%s", eventID, *serverName)
|
||||
now = time.Unix(0, 0)
|
||||
event, err := b.Build(id, now, *serverName, *keyID, privateKey)
|
||||
event, err := b.Build(id, now, *serverName, gomatrixserverlib.KeyID(*keyID), privateKey)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue