multiaccounts

package
v0.34.0-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2019 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name           string         `json:"name"`
	Address        common.Address `json:"address"`
	Timestamp      int64          `json:"timestamp"`
	PhotoPath      string         `json:"photo-path"`
	KeycardPairing string         `json:"keycard-pairing"`
	KeycardKeyUID  string         `json:"keycard-key-uid"`
}

Account stores public information about account.

type Database

type Database struct {
	// contains filtered or unexported fields
}

func InitializeDB

func InitializeDB(path string) (*Database, error)

InitializeDB creates db file at a given path and applies migrations.

func (*Database) Close

func (db *Database) Close() error

func (*Database) DeleteAccount

func (db *Database) DeleteAccount(address common.Address) error

func (*Database) GetAccounts

func (db *Database) GetAccounts() ([]Account, error)

func (*Database) SaveAccount

func (db *Database) SaveAccount(account Account) error

func (*Database) UpdateAccount

func (db *Database) UpdateAccount(account Account) error

func (*Database) UpdateAccountTimestamp

func (db *Database) UpdateAccountTimestamp(address common.Address, loginTimestamp int64) error

Directories

Path Synopsis
sql

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL