Documentation ¶
Index ¶
- Variables
- type EthTxHashLookup
- func (ei *EthTxHashLookup) Close() error
- func (ei *EthTxHashLookup) DeleteEntriesOlderThan(days int) (int64, error)
- func (ei *EthTxHashLookup) GetCidFromHash(txHash ethtypes.EthHash) (cid.Cid, error)
- func (ei *EthTxHashLookup) GetHashFromCid(c cid.Cid) (ethtypes.EthHash, error)
- func (ei *EthTxHashLookup) UpsertHash(txHash ethtypes.EthHash, c cid.Cid) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type EthTxHashLookup ¶
type EthTxHashLookup struct {
// contains filtered or unexported fields
}
func NewTransactionHashLookup ¶
func NewTransactionHashLookup(path string) (*EthTxHashLookup, error)
func (*EthTxHashLookup) Close ¶
func (ei *EthTxHashLookup) Close() error
func (*EthTxHashLookup) DeleteEntriesOlderThan ¶
func (ei *EthTxHashLookup) DeleteEntriesOlderThan(days int) (int64, error)
func (*EthTxHashLookup) GetCidFromHash ¶
func (ei *EthTxHashLookup) GetCidFromHash(txHash ethtypes.EthHash) (cid.Cid, error)
func (*EthTxHashLookup) GetHashFromCid ¶
func (ei *EthTxHashLookup) GetHashFromCid(c cid.Cid) (ethtypes.EthHash, error)
func (*EthTxHashLookup) UpsertHash ¶
func (ei *EthTxHashLookup) UpsertHash(txHash ethtypes.EthHash, c cid.Cid) error
Click to show internal directories.
Click to hide internal directories.