Add local bridge state types (#348)
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled

This commit is contained in:
Brad Murray 2025-01-27 14:40:10 -05:00 committed by GitHub
commit 625dbc6de3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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"
)