mariadb

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 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 MariaDB

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

func NewMariaDB

func NewMariaDB(dbURL string) (*MariaDB, error)

NewMariaDB creates a new MariaDB connection instance

func (*MariaDB) AddAccount

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

func (*MariaDB) AddUser

func (m *MariaDB) AddUser(userID []byte, privateKey []byte) error

func (*MariaDB) DeleteUser

func (m *MariaDB) DeleteUser(userID []byte) error

func (*MariaDB) GetAccounts

func (m *MariaDB) GetAccounts(userID []byte) ([]common.AccountDB, error)

func (*MariaDB) GetAllUsers

func (m *MariaDB) GetAllUsers() ([]common.UserDB, error)

func (*MariaDB) GetUserPrivateKey

func (m *MariaDB) GetUserPrivateKey(userID []byte) ([]byte, error)

func (*MariaDB) StoreTransaction

func (m *MariaDB) StoreTransaction(rawTx string, userID []byte) error

Jump to

Keyboard shortcuts

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