Documentation
¶
Index ¶
- Variables
- func WithIndexCollections(b bool) func(*Config)
- func WithIndexCommit(b bool) func(*Config)
- func WithIndexEvents(b bool) func(*Config)
- func WithIndexGuarantees(b bool) func(*Config)
- func WithIndexHeader(b bool) func(*Config)
- func WithIndexPayloads(b bool) func(*Config)
- func WithIndexResults(b bool) func(*Config)
- func WithIndexSeals(b bool) func(*Config)
- func WithIndexTransactions(b bool) func(*Config)
- func WithSkipBootstrap(b bool) func(*Config)
- func WithTransition(status Status, transition TransitionFunc) func(*FSM)
- type Config
- type FSM
- type Feeder
- type Forest
- type Loader
- type State
- type Status
- type TransitionFunc
- type Transitions
- func (t *Transitions) BootstrapState(s *State) error
- func (t *Transitions) CollectRegisters(s *State) error
- func (t *Transitions) ForwardHeight(s *State) error
- func (t *Transitions) IndexChain(s *State) error
- func (t *Transitions) IndexRegisters(s *State) error
- func (t *Transitions) UpdateTree(s *State) error
Constants ¶
This section is empty.
Variables ¶
var DefaultConfig = Config{ IndexCommit: false, IndexHeader: false, IndexCollections: false, IndexGuarantees: false, IndexTransactions: false, IndexResults: false, IndexEvents: false, IndexPayloads: false, IndexSeals: false, SkipBootstrap: false, }
DefaultConfig has the default values of the config set.
Functions ¶
func WithIndexCollections ¶
WithIndexCollections sets up the mapper to build the collections index.
func WithIndexCommit ¶
WithIndexCommit sets up the mapper to build the commits index.
func WithIndexEvents ¶
WithIndexEvents sets up the mapper to build the events index.
func WithIndexGuarantees ¶ added in v1.1.0
WithIndexGuarantees sets up the mapper to build the guarantees index.
func WithIndexHeader ¶
WithIndexHeader sets up the mapper to build the headers index.
func WithIndexPayloads ¶
WithIndexPayloads sets up the mapper to build the payloads index.
func WithIndexResults ¶ added in v1.1.0
WithIndexResults sets up the mapper to build the transaction results index.
func WithIndexSeals ¶ added in v1.1.0
WithIndexSeals sets up the mapper to build the seals index.
func WithIndexTransactions ¶
WithIndexTransactions sets up the mapper to build the transactions index.
func WithSkipBootstrap ¶
WithSkipBootstrap sets the mapper up to skip indexing the registers from the initial checkpoint.
func WithTransition ¶
func WithTransition(status Status, transition TransitionFunc) func(*FSM)
Types ¶
type Config ¶
type Config struct {
IndexCommit bool
IndexHeader bool
IndexCollections bool
IndexGuarantees bool
IndexTransactions bool
IndexResults bool
IndexEvents bool
IndexPayloads bool
IndexSeals bool
SkipBootstrap bool
}
Config contains optional parameters for the mapper.
type Feeder ¶
type Feeder interface {
Update() (*ledger.TrieUpdate, error)
}
type Forest ¶
type Forest interface {
Save(tree *trie.MTrie, paths []ledger.Path, parent flow.StateCommitment)
Has(commit flow.StateCommitment) bool
Tree(commit flow.StateCommitment) (*trie.MTrie, bool)
Paths(commit flow.StateCommitment) ([]ledger.Path, bool)
Parent(commit flow.StateCommitment) (flow.StateCommitment, bool)
Reset(finalized flow.StateCommitment)
}
type TransitionFunc ¶
type Transitions ¶
type Transitions struct {
// contains filtered or unexported fields
}
func NewTransitions ¶
func (*Transitions) BootstrapState ¶
func (t *Transitions) BootstrapState(s *State) error
func (*Transitions) CollectRegisters ¶
func (t *Transitions) CollectRegisters(s *State) error
func (*Transitions) ForwardHeight ¶
func (t *Transitions) ForwardHeight(s *State) error
func (*Transitions) IndexChain ¶
func (t *Transitions) IndexChain(s *State) error
func (*Transitions) IndexRegisters ¶
func (t *Transitions) IndexRegisters(s *State) error
func (*Transitions) UpdateTree ¶
func (t *Transitions) UpdateTree(s *State) error