firehose

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

README

StreamingFast Firehose

reference License

A firehose-style stream of streamingfast Blocks app wrapper as part of StreamingFast.

Contributing

Issues and PR in this repo related strictly to the core firehose service.

Report any protocol-specific issues in their respective repositories

Please first refer to the general StreamingFast contribution guide, if you wish to contribute to this code base.

License

Apache 2.0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StreamMergedBlocksPreprocThreads = 25

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 StreamFactory

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

func NewStreamFactory

func NewStreamFactory(
	mergedBlocksStore dstore.Store,
	forkedBlocksStore dstore.Store,
	hub *hub.ForkableHub,
	transformRegistry *transform.Registry,
) *StreamFactory

func (*StreamFactory) New

func (sf *StreamFactory) New(
	ctx context.Context,
	handler bstream.Handler,
	request *pbfirehose.Request,
	logger *zap.Logger) (*stream.Stream, error)

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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