indexer

package
v0.0.0-...-ace8a2a Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAndRun

func MakeAndRun(url string, s storage.Storage, c *common.Config)

func MakeBlockContext

func MakeBlockContext(s storage.Storage, client chain.Client, config *common.Config) *blockContext

Types

type Genesis

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

func MakeGenesis

func MakeGenesis(s storage.Storage, c chain.Client, gen_obj chain.GenesisObject, genesisHash storage.GenesisHash) *Genesis

type Indexer

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

func NewIndexer

func NewIndexer(url string, s storage.Storage, c *common.Config) (i *Indexer)

type SyncQueue

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

func MakeSyncQueue

func MakeSyncQueue(start, queueLimit uint64, client chain.Client) *SyncQueue

func (*SyncQueue) GetCurrent

func (sq *SyncQueue) GetCurrent() uint64

func (*SyncQueue) PopNext

func (sq *SyncQueue) PopNext() *chain.BlockData

func (*SyncQueue) Push

func (sq *SyncQueue) Push(bd *chain.BlockData)

func (*SyncQueue) Start

func (sq *SyncQueue) Start()

Jump to

Keyboard shortcuts

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