bridge_state
- class mautrix.util.bridge_state.BridgeStateEvent
Bases:
SerializableEnum
- 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'
- __new__(value)
- class mautrix.util.bridge_state.BridgeState
Bases:
SerializableAttrs
- state_event: BridgeStateEvent
- fill()
- Return type:
- should_deduplicate(prev_state)
- Parameters:
prev_state (BridgeState | None)
- Return type:
- async send(url, token, log, log_sent=True)
- __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.
- class mautrix.util.bridge_state.GlobalBridgeState
Bases:
SerializableAttrs
- remote_states: Dict[str, BridgeState] | None
- bridge_state: BridgeState
- __init__(*, remote_states=None, bridge_state)
Method generated by attrs for class GlobalBridgeState.
- Parameters:
remote_states (Dict[str, BridgeState] | None)
bridge_state (BridgeState)
- Return type:
None