index

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyAboutBlockProcessing

func NotifyAboutBlockProcessing(blockNumber int64)

Types

type Index

type Index struct {
	RPCClient    *core.AbstractRPCClient
	CacheHandler *blocks_cache.CacheHandler
}

func New

func New(impl core.IndexImplementation) (index *Index, err error)

func (*Index) Run

func (index *Index) Run(impl core.IndexImplementation) (err error)

Run begins to fetch latest_blocks from node and to index them.

func (*Index) Stop

func (index *Index) Stop()

Stop stops the index and frees all the resources. It is expected that index's process would be stopped as well after calling this method.

type NotificationRequestBody

type NotificationRequestBody struct {
	ShardId     uint32 `json:"shardId"`
	BlockNumber int64  `json:"blockNumber"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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