Documentation
¶
Index ¶
- func DeleteAccount(accDid string) error
- func FetchCredential(keyDid string) (models.Credential, error)
- func GetAccount(accDid string) (models.Account, error)
- func InsertAccount(acc models.Account) error
- func ReadInbox(accDid string) ([]*models.InboxMessage, error)
- func StoreCredential(cred models.Credential) error
- func WriteInbox(toDid string, msg *models.InboxMessage) error
- type Vault
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAccount ¶
func FetchCredential ¶
func FetchCredential(keyDid string) (models.Credential, error)
func InsertAccount ¶
func ReadInbox ¶
func ReadInbox(accDid string) ([]*models.InboxMessage, error)
ReadInbox reads the inbox for the account
func StoreCredential ¶
func StoreCredential(cred models.Credential) error
func WriteInbox ¶
func WriteInbox(toDid string, msg *models.InboxMessage) error
WriteInbox writes a message to the inbox for the account
Types ¶
type Vault ¶
type Vault interface {
// InsertAccount inserts the account and its keyshares into the IPFS store
InsertAccount(acc models.Account) error
// GetAccount gets the account and its keyshares from the IPFS store
GetAccount(accDid string) (models.Account, error)
// DeleteAccount deletes the account and its keyshares from the IPFS store
DeleteAccount(accDid string) error
// ReadInbox reads the inbox from the IPFS store
ReadInbox(accDid string) ([]*models.InboxMessage, error)
// WriteInbox writes the inbox to the IPFS store
WriteInbox(toDid string, msg *models.InboxMessage) error
}
Click to show internal directories.
Click to hide internal directories.