dao

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

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

func New

func New(c *config.Config) *Dao

func (*Dao) CloseDB

func (d *Dao) CloseDB()

func (*Dao) CreateAddressEnrolment

func (d *Dao) CreateAddressEnrolment(r *model.AddrMove) error

func (*Dao) GetTx

func (d *Dao) GetTx() *gorm.DB

func (*Dao) Query

func (d *Dao) Query(tp uint32, query string) (*model.AddrBackup, error)

func (*Dao) QueryAddressEnrolment

func (d *Dao) QueryAddressEnrolment(btyAddr string) (*model.AddrMove, error)

func (*Dao) QueryRelate

func (d *Dao) QueryRelate(tp uint32, query string) (*model.AddrRelate, error)

func (*Dao) UpdateAddrBackup

func (d *Dao) UpdateAddrBackup(tp uint32, r *model.AddrBackup) error

func (*Dao) UpdateAddrRelate

func (d *Dao) UpdateAddrRelate(tp uint32, r *model.AddrRelate) error

func (*Dao) UpdateMnemonic

func (d *Dao) UpdateMnemonic(r *model.AddrBackup) error

Jump to

Keyboard shortcuts

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