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: 0

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