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)
// GetBulkStateACLs returns all server ACLs for the given rooms.
GetBulkStateACLs(ctx context.Context, roomIDs []string) ([]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.