Documentation ¶
Index ¶
- Constants
- Variables
- type EthTxHashLookup
- func (ei *EthTxHashLookup) Close() (err 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 ¶
View Source
const DefaultDbFilename = "txhash.db"
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(ctx context.Context, path string) (*EthTxHashLookup, error)
func (*EthTxHashLookup) Close ¶
func (ei *EthTxHashLookup) Close() (err 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.