Documentation ¶
Index ¶
- type Keycard
- type KeycardAction
- type Keycards
- func (kp *Keycards) AddKeycardOrAddAccountsIfKeycardIsAdded(keycard Keycard) (addedKc bool, addedAccs bool, err error)
- func (kp *Keycards) DeleteAllKeycardsWithKeyUID(keyUID string) (err error)
- func (kp *Keycards) DeleteKeycard(kcUID string, clock uint64) (err error)
- func (kp *Keycards) GetAllKnownKeycards() ([]*Keycard, error)
- func (kp *Keycards) GetAllKnownKeycardsGroupedByKeyUID() ([]*Keycard, error)
- func (kp *Keycards) GetKeycardByKeyUID(keyUID string) ([]*Keycard, error)
- func (kp *Keycards) KeycardLocked(kcUID string, clock uint64) (err error)
- func (kp *Keycards) KeycardUnlocked(kcUID string, clock uint64) (err error)
- func (kp *Keycards) RemoveMigratedAccountsForKeycard(kcUID string, accountAddresses []types.Address, clock uint64) (err error)
- func (kp *Keycards) SetKeycardName(kcUID string, kpName string, clock uint64) (err error)
- func (kp *Keycards) SyncKeycards(syncingClock uint64, keycardsToSync []*Keycard) (err error)
- func (kp *Keycards) UpdateKeycardUID(oldKcUID string, newKcUID string, clock uint64) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keycard ¶
type Keycard struct { KeycardUID string `json:"keycard-uid"` KeycardName string `json:"keycard-name"` KeycardLocked bool `json:"keycard-locked"` AccountsAddresses []types.Address `json:"accounts-addresses"` KeyUID string `json:"key-uid"` LastUpdateClock uint64 }
func (*Keycard) FromSyncKeycard ¶
func (kp *Keycard) FromSyncKeycard(kc *protobuf.SyncKeycard)
func (*Keycard) ToSyncKeycard ¶
func (kp *Keycard) ToSyncKeycard() *protobuf.SyncKeycard
type KeycardAction ¶
type Keycards ¶
type Keycards struct {
// contains filtered or unexported fields
}
func NewKeycards ¶
func (*Keycards) AddKeycardOrAddAccountsIfKeycardIsAdded ¶
func (*Keycards) DeleteAllKeycardsWithKeyUID ¶
func (*Keycards) DeleteKeycard ¶
func (*Keycards) GetAllKnownKeycards ¶
func (*Keycards) GetAllKnownKeycardsGroupedByKeyUID ¶
func (*Keycards) GetKeycardByKeyUID ¶
func (*Keycards) KeycardLocked ¶
func (*Keycards) KeycardUnlocked ¶
func (*Keycards) RemoveMigratedAccountsForKeycard ¶
func (*Keycards) SetKeycardName ¶
func (*Keycards) SyncKeycards ¶
Click to show internal directories.
Click to hide internal directories.