substreams_file_sink

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Substreams Sink Files

This is a command line tool to quickly sync a substreams to a files.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetrics

func RegisterMetrics()

Types

type Config

type Config struct {
	FileWorkingDir  string
	FileOutputStore dstore.Store
	BlockRange      string
	Pkg             *pbsubstreams.Package

	StateStore state.Store

	OutputModuleName string
	ClientConfig     *client.SubstreamsClientConfig
	BlockPerFile     uint64

	BufferMazSize uint64
	Encoder       string
}

type FileSinker

type FileSinker struct {
	*shutter.Shutter
	// contains filtered or unexported fields
}

func NewFileSinker

func NewFileSinker(config *Config, logger *zap.Logger, tracer logging.Tracer) *FileSinker

func (*FileSinker) Run

func (fs *FileSinker) Run(ctx context.Context) error

type OutputModule

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

Directories

Path Synopsis
cmd
pb

Jump to

Keyboard shortcuts

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