mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-14 05:12:26 +03:00
Implement server whitelist
This commit is contained in:
parent
add73ec866
commit
b2ecd5648c
14 changed files with 332 additions and 0 deletions
|
@ -49,6 +49,11 @@ type Database interface {
|
|||
RemoveAllServersFromBlacklist() error
|
||||
IsServerBlacklisted(serverName spec.ServerName) (bool, error)
|
||||
|
||||
AddServerToWhitelist(serverName spec.ServerName) error
|
||||
RemoveServerFromWhitelist(serverName spec.ServerName) error
|
||||
RemoveAllServersFromWhitelist() error
|
||||
IsServerWhitelisted(serverName spec.ServerName) (bool, error)
|
||||
|
||||
// Adds the server to the list of assumed offline servers.
|
||||
// If the server already exists in the table, nothing happens and returns success.
|
||||
SetServerAssumedOffline(ctx context.Context, serverName spec.ServerName) error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue