mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-18 18:31:56 +00:00
39 lines
561 B
Go
39 lines
561 B
Go
package statuskeycardgo
|
|
|
|
type FlowType int
|
|
type runState int
|
|
|
|
const (
|
|
GetStatus FlowType = iota
|
|
RecoverAccount
|
|
LoadAccount
|
|
Login
|
|
Sign
|
|
ChangeCredentials
|
|
UnpairThis
|
|
UnpairOthers
|
|
DeleteAccountAndUnpair
|
|
)
|
|
|
|
const (
|
|
Idle runState = iota
|
|
Running
|
|
Paused
|
|
Resuming
|
|
Cancelling
|
|
)
|
|
|
|
const (
|
|
FlowResult = "keycard.flow-result"
|
|
InsertCard = "keycard.action.insert-card"
|
|
CardInserted = "keycard.action.card-inserted"
|
|
)
|
|
|
|
type keycardFlow struct {
|
|
flowType FlowType
|
|
state runState
|
|
wakeUp chan (struct{})
|
|
storage string
|
|
params map[string]string
|
|
}
|