Skip to content

Commit

Permalink
Add local bridge state types
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Jan 27, 2025
1 parent 873d34f commit 6f2776b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions bridge/status/localbridgestate.go
Original file line number Diff line number Diff line change
@@ -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"
)

0 comments on commit 6f2776b

Please sign in to comment.