Versions in this module Expand all Collapse all v1 v1.11.1 Jun 10, 2024 Changes in this version + type Backend interface + Flush func(map[string]types.NamedIndices) error + FlushAccounts func([]string) error + FlushTransactions func(map[string]*types.TrieIndex) error + Read func(account string) (types.NamedIndices, error) + ReadAccounts func() ([]string, error) + ReadTransactions func(prefix string) (*types.TrieIndex, error) + type FileBackend struct + func NewFileBackend(dir string, parallel uint32) (*FileBackend, error) + func (s *FileBackend) Flush(indexes map[string]types.NamedIndices) error + func (s *FileBackend) FlushAccounts(accounts []string) error + func (s *FileBackend) FlushTransactions(indexes map[string]*types.TrieIndex) error + func (s *FileBackend) Read(account string) (types.NamedIndices, error) + func (s *FileBackend) ReadAccounts() ([]string, error) + func (s *FileBackend) ReadTransactions(prefix string) (*types.TrieIndex, error) + type S3Backend struct + func NewS3Backend(awsConfig *aws.Config, bucket string, pathPrefix string, parallel uint32) (*S3Backend, error) + func (s *S3Backend) Flush(indexes map[string]types.NamedIndices) error + func (s *S3Backend) FlushAccounts(accounts []string) error + func (s *S3Backend) FlushTransactions(indexes map[string]*types.TrieIndex) error + func (s *S3Backend) Read(account string) (types.NamedIndices, error) + func (s *S3Backend) ReadAccounts() ([]string, error) + func (s *S3Backend) ReadTransactions(prefix string) (*types.TrieIndex, error)