Documentation ¶
Index ¶
- type Store
- func (s *Store) DB() *sql.DB
- func (s *Store) Get(id string) (*store.Tx, error)
- func (s *Store) GetByAssetAndSender(asset, address string) ([]*store.Tx, error)
- func (s *Store) GetBySender(address string) ([]*store.Tx, error)
- func (s *Store) GetByStatus(status string) ([]*store.Tx, error)
- func (s *Store) GetLastSyncBlockID() uint64
- func (s *Store) GetLatestBlockID() (uint64, error)
- func (s *Store) GetTxByTypeBlockHeight(txType string, height uint64) ([]*store.Tx, error)
- func (s *Store) Save(tx *store.Tx) error
- func (s *Store) SaveLastSyncBlockID(blockID uint64) error
- func (s *Store) Update(tx *store.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store wraps *sqlx.DB
func NewStore ¶
NewStore returns a new Store from the provided databse string, Store implements store.Storer.
func (*Store) GetByAssetAndSender ¶
GetByAssetAndSender returns list of transaction filter by given asset and sender address.
func (*Store) GetBySender ¶
GetBySender returns list of transaction filter by given sender address.
func (*Store) GetByStatus ¶
GetByStatus returns list of transaction filter by given status
func (*Store) GetLastSyncBlockID ¶
GetLastSyncBlockID returns last synced block id.
func (*Store) GetLatestBlockID ¶
GetLatestBlockID returns latest block id from saved transaction
func (*Store) GetTxByTypeBlockHeight ¶
GetTxByTypeBlockHeight returns list of transaction filter by given block height.
func (*Store) SaveLastSyncBlockID ¶
SaveLastSyncBlockID save last synced block id to database.
Click to show internal directories.
Click to hide internal directories.