Documentation ¶
Index ¶
- type MariaDB
- func (m *MariaDB) AddAccount(userID []byte, accountAddress []byte, signature []byte) error
- func (m *MariaDB) AddUser(userID []byte, privateKey []byte) error
- func (m *MariaDB) DeleteUser(userID []byte) error
- func (m *MariaDB) GetAccounts(userID []byte) ([]common.AccountDB, error)
- func (m *MariaDB) GetAllUsers() ([]common.UserDB, error)
- func (m *MariaDB) GetUserPrivateKey(userID []byte) ([]byte, error)
- type SqliteDatabase
- func (s *SqliteDatabase) AddAccount(userID []byte, accountAddress []byte, signature []byte) error
- func (s *SqliteDatabase) AddUser(userID []byte, privateKey []byte) error
- func (s *SqliteDatabase) DeleteUser(userID []byte) error
- func (s *SqliteDatabase) GetAccounts(userID []byte) ([]common.AccountDB, error)
- func (s *SqliteDatabase) GetAllUsers() ([]common.UserDB, error)
- func (s *SqliteDatabase) GetUserPrivateKey(userID []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MariaDB ¶ added in v0.18.0
type MariaDB struct {
// contains filtered or unexported fields
}
func NewMariaDB ¶ added in v0.18.0
NewMariaDB creates a new MariaDB connection instance
func (*MariaDB) AddAccount ¶ added in v0.18.0
func (*MariaDB) DeleteUser ¶ added in v0.18.0
func (*MariaDB) GetAccounts ¶ added in v0.18.0
func (*MariaDB) GetAllUsers ¶ added in v0.18.0
type SqliteDatabase ¶
type SqliteDatabase struct {
// contains filtered or unexported fields
}
func NewSqliteDatabase ¶
func NewSqliteDatabase(dbPath string) (*SqliteDatabase, error)
func (*SqliteDatabase) AddAccount ¶
func (s *SqliteDatabase) AddAccount(userID []byte, accountAddress []byte, signature []byte) error
func (*SqliteDatabase) AddUser ¶
func (s *SqliteDatabase) AddUser(userID []byte, privateKey []byte) error
func (*SqliteDatabase) DeleteUser ¶
func (s *SqliteDatabase) DeleteUser(userID []byte) error
func (*SqliteDatabase) GetAccounts ¶
func (s *SqliteDatabase) GetAccounts(userID []byte) ([]common.AccountDB, error)
func (*SqliteDatabase) GetAllUsers ¶
func (s *SqliteDatabase) GetAllUsers() ([]common.UserDB, error)
func (*SqliteDatabase) GetUserPrivateKey ¶
func (s *SqliteDatabase) GetUserPrivateKey(userID []byte) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.