diff options
Diffstat (limited to 'relayapi/api/api.go')
-rw-r--r-- | relayapi/api/api.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/relayapi/api/api.go b/relayapi/api/api.go index 9db39322..9b4b62e5 100644 --- a/relayapi/api/api.go +++ b/relayapi/api/api.go @@ -30,6 +30,12 @@ type RelayInternalAPI interface { userID gomatrixserverlib.UserID, relayServer gomatrixserverlib.ServerName, ) error + + // Tells the relayapi whether or not it should act as a relay server for external servers. + SetRelayingEnabled(bool) + + // Obtain whether the relayapi is currently configured to act as a relay server for external servers. + RelayingEnabled() bool } // RelayServerAPI exposes the store & query transaction functionality of a relay server. |