Documentation ¶
Index ¶
- func GetDBConn(c *conf.Config) *sql.DB
- func GetRedisClient(c *conf.Config) *redis.Client
- type Dao
- func (d *Dao) AddFChainTx(f *model.FChainTx) (err error)
- func (d *Dao) AddMChainTx(m *model.MChainTx) (err error)
- func (d *Dao) AddMChainTxByFTx(m *model.MChainTx) (err error)
- func (d *Dao) AddTChainTx(t *model.TChainTx) (err error)
- func (d *Dao) AddTChainTxByMTx(t *model.TChainTx) (err error)
- func (d *Dao) BeginTran() (*sql.Tx, error)
- func (d *Dao) CacheFChainTx(txHash string) (f *model.FChainTx, err error)
- func (d *Dao) CacheMChainTx(txHash string) (m *model.MChainTx, err error)
- func (d *Dao) CacheMChainTxByFTx(fTxHash string) (m *model.MChainTx, err error)
- func (d *Dao) CacheTChainTx(txHash string) (t *model.TChainTx, err error)
- func (d *Dao) CacheTChainTxByMTx(mTxHash string) (m *model.TChainTx, err error)
- func (d *Dao) Close()
- func (d *Dao) FChainTx(txHash string, chain uint32) (res *model.FChainTx, err error)
- func (d *Dao) InsertFChainTx(f *model.FChainTx) (err error)
- func (d *Dao) InsertFChainTxAndCache(f *model.FChainTx) (err error)
- func (d *Dao) InsertMChainTx(m *model.MChainTx) (err error)
- func (d *Dao) InsertMChainTxAndCache(m *model.MChainTx) (err error)
- func (d *Dao) InsertPolyValidator(height uint32, validators []string) (err error)
- func (d *Dao) InsertTChainTx(t *model.TChainTx) (err error)
- func (d *Dao) InsertTChainTxAndCache(t *model.TChainTx) (err error)
- func (d *Dao) MChainTx(txHash string) (res *model.MChainTx, err error)
- func (d *Dao) MChainTxByFTx(fTxHash string) (res *model.MChainTx, err error)
- func (d *Dao) Ping() (err error)
- func (d *Dao) SelectAddressTxList(chainId uint32, addr string, start uint32, end uint32) (res []*model.AddressTx, err error)
- func (d *Dao) SelectAddressTxTotal(chainId uint32, addr string) (count *uint32, err error)
- func (d *Dao) SelectAllChainInfos() (c []*model.ChainInfo, err error)
- func (d *Dao) SelectAllianceTx(height uint32, chain uint32) (res []*model.MChainTx, err error)
- func (d *Dao) SelectBitcoinTxUnConfirm(id uint32) (res []string, err error)
- func (d *Dao) SelectChainAddresses(chainId uint32) (uint32, error)
- func (d *Dao) SelectChainInfoById(id uint32) (res *model.ChainInfo, err error)
- func (d *Dao) SelectContractById(id uint32) (c []*model.ChainContract, err error)
- func (d *Dao) SelectFChainTxByHash(hash string, chain uint32) (res *model.FChainTx, err error)
- func (d *Dao) SelectFChainTxByTime(chainId uint32, start uint32, end uint32) (res []*model.CrossChainTxStatus, err error)
- func (d *Dao) SelectMChainTxByFHash(hash string) (res *model.MChainTx, err error)
- func (d *Dao) SelectMChainTxByHash(hash string) (res *model.MChainTx, err error)
- func (d *Dao) SelectMChainTxByLimit(start int, limit int) (res []*model.MChainTx, err error)
- func (d *Dao) SelectMChainTxCount() (count *uint32, err error)
- func (d *Dao) SelectPolyValidator() (validator []string, err error)
- func (d *Dao) SelectTChainTxByHash(hash string) (res *model.TChainTx, err error)
- func (d *Dao) SelectTChainTxByMHash(hash string) (res *model.TChainTx, err error)
- func (d *Dao) SelectTChainTxByTime(chainId uint32, start uint32, end uint32) (res []*model.CrossChainTxStatus, err error)
- func (d *Dao) SelectTokenById(id uint32) (c []*model.ChainToken, err error)
- func (d *Dao) SelectTokenCount() (count *uint32, err error)
- func (d *Dao) SelectTokenTxList(token string, start uint32, end uint32) (res []*model.TokenTx, err error)
- func (d *Dao) SelectTokenTxTotal(token string) (count *uint32, err error)
- func (d *Dao) TChainTx(txHash string) (res *model.TChainTx, err error)
- func (d *Dao) TChainTxByMTx(txHash string) (res *model.TChainTx, err error)
- func (d *Dao) TxInsertFChainTx(tx *sql.Tx, f *model.FChainTx) (err error)
- func (d *Dao) TxInsertFChainTxAndCache(tx *sql.Tx, f *model.FChainTx) (err error)
- func (d *Dao) TxInsertMChainTx(tx *sql.Tx, m *model.MChainTx) (err error)
- func (d *Dao) TxInsertMChainTxAndCache(tx *sql.Tx, m *model.MChainTx) (err error)
- func (d *Dao) TxInsertTChainTx(tx *sql.Tx, t *model.TChainTx) (err error)
- func (d *Dao) TxInsertTChainTxAndCache(tx *sql.Tx, t *model.TChainTx) (err error)
- func (d *Dao) TxUpdateChainInfoById(tx *sql.Tx, c *model.ChainInfo) (err error)
- func (d *Dao) UpdateBitcoinTxConfirmed(txhash string, height uint32, tt uint32, gas uint64, toaddress string, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func (*Dao) CacheFChainTx ¶
func (*Dao) CacheMChainTx ¶
func (*Dao) CacheMChainTxByFTx ¶
func (*Dao) CacheTChainTx ¶
func (*Dao) CacheTChainTxByMTx ¶
func (*Dao) InsertFChainTxAndCache ¶
func (*Dao) InsertMChainTxAndCache ¶
func (*Dao) InsertPolyValidator ¶
func (*Dao) InsertTChainTxAndCache ¶
func (*Dao) MChainTxByFTx ¶
func (*Dao) SelectAddressTxList ¶
func (*Dao) SelectAddressTxTotal ¶
func (*Dao) SelectAllChainInfos ¶
func (*Dao) SelectAllianceTx ¶
func (*Dao) SelectBitcoinTxUnConfirm ¶
func (*Dao) SelectChainAddresses ¶
func (*Dao) SelectChainInfoById ¶
func (*Dao) SelectContractById ¶
func (d *Dao) SelectContractById(id uint32) (c []*model.ChainContract, err error)
func (*Dao) SelectFChainTxByHash ¶
func (*Dao) SelectFChainTxByTime ¶
func (*Dao) SelectMChainTxByFHash ¶
func (*Dao) SelectMChainTxByHash ¶
func (*Dao) SelectMChainTxByLimit ¶
func (*Dao) SelectMChainTxCount ¶
func (*Dao) SelectPolyValidator ¶
func (*Dao) SelectTChainTxByHash ¶
func (*Dao) SelectTChainTxByMHash ¶
func (*Dao) SelectTChainTxByTime ¶
func (*Dao) SelectTokenById ¶
func (d *Dao) SelectTokenById(id uint32) (c []*model.ChainToken, err error)
func (*Dao) SelectTokenCount ¶
func (*Dao) SelectTokenTxList ¶
func (*Dao) SelectTokenTxTotal ¶
func (*Dao) TChainTxByMTx ¶
func (*Dao) TxInsertFChainTx ¶
func (*Dao) TxInsertFChainTxAndCache ¶
func (*Dao) TxInsertMChainTx ¶
func (*Dao) TxInsertMChainTxAndCache ¶
func (*Dao) TxInsertTChainTx ¶
func (*Dao) TxInsertTChainTxAndCache ¶
func (*Dao) TxUpdateChainInfoById ¶
Click to show internal directories.
Click to hide internal directories.