mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 13:52:46 +00:00
Implement Typing server (#567)
* update gomatrixserverlib * Make removeUser public * Implement api.TypingServerInputAPI * Integrate the typing server component, create kafka topic * Add typing server cmd for multiprocess dendrite
This commit is contained in:
parent
9cdd3a66e4
commit
1165b49da7
19 changed files with 236 additions and 28 deletions
23
vendor/src/github.com/matrix-org/gomatrixserverlib/edu.go
vendored
Normal file
23
vendor/src/github.com/matrix-org/gomatrixserverlib/edu.go
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
/* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package gomatrixserverlib
|
||||
|
||||
// EDU represents a EDU received via federation
|
||||
// https://matrix.org/docs/spec/server_server/unstable.html#edus
|
||||
type EDU struct {
|
||||
Type string `json:"edu_type"`
|
||||
Origin string `json:"origin"`
|
||||
Destination string `json:"destination"`
|
||||
Content RawJSON `json:"content"`
|
||||
}
|
|
@ -47,6 +47,8 @@ const (
|
|||
MRoomHistoryVisibility = "m.room.history_visibility"
|
||||
// MRoomRedaction https://matrix.org/docs/spec/client_server/r0.2.0.html#id21
|
||||
MRoomRedaction = "m.room.redaction"
|
||||
// MTyping https://matrix.org/docs/spec/client_server/r0.3.0.html#m-typing
|
||||
MTyping = "m.typing"
|
||||
)
|
||||
|
||||
// StateNeeded lists the event types and state_keys needed to authenticate an event.
|
||||
|
|
0
vendor/src/github.com/matrix-org/gomatrixserverlib/hooks/install.sh
vendored
Executable file → Normal file
0
vendor/src/github.com/matrix-org/gomatrixserverlib/hooks/install.sh
vendored
Executable file → Normal file
0
vendor/src/github.com/matrix-org/gomatrixserverlib/hooks/pre-commit
vendored
Executable file → Normal file
0
vendor/src/github.com/matrix-org/gomatrixserverlib/hooks/pre-commit
vendored
Executable file → Normal file
|
@ -11,7 +11,7 @@
|
|||
"structcheck",
|
||||
"maligned",
|
||||
"ineffassign",
|
||||
"gas",
|
||||
"gosec",
|
||||
"misspell",
|
||||
"gosimple",
|
||||
"megacheck",
|
||||
|
|
|
@ -16,11 +16,14 @@ type Transaction struct {
|
|||
// the destination server. Multiple transactions can be sent by the origin
|
||||
// server to the destination server in parallel so there may be more than
|
||||
// one previous transaction.
|
||||
PreviousIDs []TransactionID `json:"previous_ids"`
|
||||
PreviousIDs []TransactionID `json:"previous_ids,omitempty"`
|
||||
// The room events pushed from the origin server to the destination server
|
||||
// by this transaction. The events should either be events that originate
|
||||
// on the origin server or be join m.room.member events.
|
||||
PDUs []Event `json:"pdus"`
|
||||
// The ephemeral events pushed from origin server to destination server
|
||||
// by this transaction. The events must orginate at the origin server.
|
||||
EDUs []EDU `json:"edus,omitempty"`
|
||||
}
|
||||
|
||||
// A TransactionID identifies a transaction sent by a matrix server to another
|
||||
|
|
0
vendor/src/github.com/matrix-org/gomatrixserverlib/travis.sh
vendored
Executable file → Normal file
0
vendor/src/github.com/matrix-org/gomatrixserverlib/travis.sh
vendored
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue