prefixtree

package
v0.2.3-kustomize.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "prefix_tree"
)

Variables

buildPrefixTreeEvents maps event types that trigger the creation or deletion of prefix tree nodes. If an event type is present and set to true in this map, it means that event will result in changes to the prefix tree structure.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module represents the object module

func NewModule

func NewModule(db *database.DB) *Module

NewModule builds a new Module instance

func (*Module) AutoMigrate

func (m *Module) AutoMigrate() error

func (*Module) ExtractEvent

func (m *Module) ExtractEvent(ctx context.Context, block *tmctypes.ResultBlock, txHash common.Hash, event sdk.Event) (interface{}, error)

func (*Module) HandleEvent

func (m *Module) HandleEvent(ctx context.Context, block *tmctypes.ResultBlock, txHash common.Hash, event sdk.Event) error

HandleEvent handles the events relevant to the building of the PrefixTree. It checks the type of the event and calls the appropriate handler for it.

func (*Module) Name

func (m *Module) Name() string

Name implements modules.Module

func (*Module) PrepareTables

func (m *Module) PrepareTables() error

PrepareTables implements

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL