mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Add local bridge state types (#348)
Some checks failed
Some checks failed
This commit is contained in:
parent
873d34ff5d
commit
625dbc6de3
1 changed files with 23 additions and 0 deletions
23
bridge/status/localbridgestate.go
Normal file
23
bridge/status/localbridgestate.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package status
|
||||
|
||||
type LocalBridgeAccountState string
|
||||
|
||||
const (
|
||||
// LocalBridgeAccountStateSetup means the user wants this account to be setup and connected
|
||||
LocalBridgeAccountStateSetup LocalBridgeAccountState = "SETUP"
|
||||
// LocalBridgeAccountStateDeleted means the user wants this account to be deleted
|
||||
LocalBridgeAccountStateDeleted LocalBridgeAccountState = "DELETED"
|
||||
)
|
||||
|
||||
type LocalBridgeDeviceState string
|
||||
|
||||
const (
|
||||
// LocalBridgeDeviceStateSetup means this device is setup to be connected to this account
|
||||
LocalBridgeDeviceStateSetup LocalBridgeDeviceState = "SETUP"
|
||||
// LocalBridgeDeviceStateLoggedOut means the user has logged this particular device out while wanting their other devices to remain setup
|
||||
LocalBridgeDeviceStateLoggedOut LocalBridgeDeviceState = "LOGGED_OUT"
|
||||
// LocalBridgeDeviceStateError means this particular device has fallen into a persistent error state that may need user intervention to fix
|
||||
LocalBridgeDeviceStateError LocalBridgeDeviceState = "ERROR"
|
||||
// LocalBridgeDeviceStateDeleted means this particular device has cleaned up after the account as a whole was requested to be deleted
|
||||
LocalBridgeDeviceStateDeleted LocalBridgeDeviceState = "DELETED"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue