Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry interface {
// LastIndex returns index of the last stored event
LastIndex() (uint64, error)
// StoreLogs stores the web3 logs of the event
StoreLogs(logs []*ethgo.Log) error
// RemoveLogs all the logs starting at index 'indx'
RemoveLogs(indx uint64) error
// GetLog returns the log at indx
GetLog(indx uint64, log *ethgo.Log) error
}
Entry is a filter entry in the store
type Store ¶
type Store interface {
// Get gets a value
Get(k string) (string, error)
// ListPrefix lists values by prefix
ListPrefix(prefix string) ([]string, error)
// Set sets a value
Set(k, v string) error
// Close closes the store
Close() error
// GetEntry returns a specific entry
GetEntry(hash string) (Entry, error)
}
Store is a datastore for the tracker
Click to show internal directories.
Click to hide internal directories.