firehose

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockGetter

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

func NewBlockGetter

func NewBlockGetter(
	mergedBlocksStore dstore.Store,
	forkedBlocksStore dstore.Store,
	hub *hub.ForkableHub,
) *BlockGetter

func (*BlockGetter) Get

func (g *BlockGetter) Get(
	ctx context.Context,
	num uint64,
	id string,
	logger *zap.Logger) (out *pbbstream.Block, err error)

type BlockMetaGetter added in v1.1.1

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

func NewBlockMetaGetter added in v1.1.1

func NewBlockMetaGetter(
	blockMetaStore *blockmeta.Store,
	forkedBlocksStore dstore.Store,
	hub *hub.ForkableHub,
) *BlockMetaGetter

func (*BlockMetaGetter) GetByHash added in v1.1.1

func (g *BlockMetaGetter) GetByHash(
	ctx context.Context,
	id string,
	logger *zap.Logger,
) (out *pbbstream.BlockMeta, err error)

func (*BlockMetaGetter) GetByNum added in v1.1.1

func (g *BlockMetaGetter) GetByNum(
	ctx context.Context,
	num uint64,
	logger *zap.Logger,
) (out *pbbstream.BlockMeta, err error)

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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