Documentation ¶
Index ¶
Constants ¶
View Source
const MRoomServerACL = "m.room.server_acl"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerACLDatabase ¶
type ServerACLDatabase interface { // RoomsWithACLs returns all room IDs for rooms with ACLs RoomsWithACLs(ctx context.Context) ([]string, error) // GetBulkStateContent returns all state events which match a given room ID and a given state key tuple. Both must be satisfied for a match. // If a tuple has the StateKey of '*' and allowWildcards=true then all state events with the EventType should be returned. GetBulkStateContent(ctx context.Context, roomIDs []string, tuples []gomatrixserverlib.StateKeyTuple, allowWildcards bool) ([]tables.StrippedEvent, error) }
type ServerACLs ¶
type ServerACLs struct {
// contains filtered or unexported fields
}
func NewServerACLs ¶
func NewServerACLs(db ServerACLDatabase) *ServerACLs
func (*ServerACLs) IsServerBannedFromRoom ¶
func (s *ServerACLs) IsServerBannedFromRoom(serverName spec.ServerName, roomID string) bool
func (*ServerACLs) OnServerACLUpdate ¶
func (s *ServerACLs) OnServerACLUpdate(strippedEvent tables.StrippedEvent)
Click to show internal directories.
Click to hide internal directories.