sqlite

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewSqliteDatabase

func NewSqliteDatabase(dbPath string) (*Database, error)

func (*Database) AddAccount

func (s *Database) AddAccount(userID []byte, accountAddress []byte, signature []byte, signatureType viewingkey.SignatureType) error

func (*Database) AddUser

func (s *Database) AddUser(userID []byte, privateKey []byte) error

func (*Database) DeleteUser

func (s *Database) DeleteUser(userID []byte) error

func (*Database) GetAccounts

func (s *Database) GetAccounts(userID []byte) ([]common.AccountDB, error)

func (*Database) GetAllUsers

func (s *Database) GetAllUsers() ([]common.UserDB, error)

func (*Database) GetUserPrivateKey

func (s *Database) GetUserPrivateKey(userID []byte) ([]byte, error)

func (*Database) StoreTransaction

func (s *Database) StoreTransaction(rawTx string, userID []byte) error

Jump to

Keyboard shortcuts

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