firehose

package module
v0.1.1-0...-dcf04d4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 15 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

StreamMergedBlocksPreprocThreads defines the number of threads that the filesource is allowed to use PER FILE. Used for decoding bstream blocks to protobuf and applying other transforms

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 *bstream.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,
	decodeBlock bool,
	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