blocks

package
v0.0.0-...-efbdb50 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockDecoder

func BlockDecoder(blk *bstream.Block) (interface{}, error)

func BlockFromProto

func BlockFromProto(b *pbcodec.Block) (*bstream.Block, error)

Types

type BlockReader

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

BlockReader reads the dbin format where each element is assumed to be a `bstream.Block`.

func NewBlockReader

func NewBlockReader(reader io.Reader) (out *BlockReader, err error)

func (*BlockReader) Read

func (l *BlockReader) Read() (*bstream.Block, error)

type Firehose

type Firehose interface {
	StreamBlocks(ctx context.Context, req *pbfirehose.Request) (pbfirehose.Stream_BlocksClient, error)
}

type LocalFirehoseFactory

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

func NewLocalFirehoseFactory

func NewLocalFirehoseFactory(store dstore.Store) *LocalFirehoseFactory

func (*LocalFirehoseFactory) StreamBlocks

type StreamingFastFirehoseFactory

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

func NewStreamingFastFirehoseFactory

func NewStreamingFastFirehoseFactory(apiKey string, endpoint string) (*StreamingFastFirehoseFactory, error)

func (*StreamingFastFirehoseFactory) StreamBlocks

Jump to

Keyboard shortcuts

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