bridge_state
- class mautrix.util.bridge_state.BridgeStateEvent
Bases:
mautrix.types.SerializableEnum
An enumeration.
- STARTING = 'STARTING'
- UNCONFIGURED = 'UNCONFIGURED'
- RUNNING = 'RUNNING'
- BRIDGE_UNREACHABLE = 'BRIDGE_UNREACHABLE'
- CONNECTING = 'CONNECTING'
- BACKFILLING = 'BACKFILLING'
- CONNECTED = 'CONNECTED'
- TRANSIENT_DISCONNECT = 'TRANSIENT_DISCONNECT'
- BAD_CREDENTIALS = 'BAD_CREDENTIALS'
- UNKNOWN_ERROR = 'UNKNOWN_ERROR'
- LOGGED_OUT = 'LOGGED_OUT'
- class mautrix.util.bridge_state.BridgeState
Bases:
mautrix.types.SerializableAttrs
- state_event: mautrix.util.bridge_state.BridgeStateEvent
- user_id: Optional[mautrix.types.UserID]
- fill()
- Return type
- should_deduplicate(prev_state)
- Parameters
prev_state (Optional[mautrix.util.bridge_state.BridgeState]) –
- Return type
- async send(url, token, log, log_sent=True)
- Parameters
url (str) –
token (str) –
log (logging.Logger) –
log_sent (bool) –
- Return type
- __init__(*, state_event, user_id=None, remote_id=None, remote_name=None, timestamp=None, ttl=0, source=None, error=None, message=None, info=None, reason=None, send_attempts_=0)
Method generated by attrs for class BridgeState.
- Parameters
state_event (mautrix.util.bridge_state.BridgeStateEvent) –
user_id (Optional[mautrix.types.UserID]) –
remote_id (Optional[str]) –
remote_name (Optional[str]) –
timestamp (Optional[int]) –
ttl (int) –
source (Optional[str]) –
error (Optional[str]) –
message (Optional[str]) –
info (Optional[Dict[str, Any]]) –
reason (Optional[str]) –
send_attempts_ (int) –
- Return type
- class mautrix.util.bridge_state.GlobalBridgeState
Bases:
mautrix.types.SerializableAttrs
- remote_states: Optional[Dict[str, mautrix.util.bridge_state.BridgeState]]
- bridge_state: mautrix.util.bridge_state.BridgeState
- __init__(*, remote_states=None, bridge_state)
Method generated by attrs for class GlobalBridgeState.
- Parameters
remote_states (Optional[Dict[str, mautrix.util.bridge_state.BridgeState]]) –
bridge_state (mautrix.util.bridge_state.BridgeState) –
- Return type