tools

package
v0.10.2-fix Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CheckCmd = &cobra.Command{Use: "check", Short: "Various checks for deployment, data integrity & debugging"}

CmdCheck is used in sf-ethereum-priv where additional checks are added.

View Source
var Cmd = &cobra.Command{Use: "tools", Short: "Developer tools related to sfeth"}
View Source
var DownloadFromFirehoseCmd = &cobra.Command{
	Use:     "download-from-firehose",
	Short:   "download blocks from firehose and save them to merged-blocks",
	Args:    cobra.ExactArgs(4),
	RunE:    downloadFromFirehoseE,
	Example: "sfeth tools download-from-firehose api.streamingfast.io 1000 2000 ./outputdir",
}
View Source
var Example = func(in string) string {
	return string(cli.Example(in))
}
View Source
var ExamplePrefixed = func(prefix, in string) string {
	return string(cli.ExamplePrefixed(prefix, in))
}

Functions

This section is empty.

Types

type KafkaProducer

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

func NewKafkaProducer

func NewKafkaProducer(topic string, logger *zap.Logger, input chan<- *sarama.ProducerMessage) *KafkaProducer

func (KafkaProducer) Send

func (k KafkaProducer) Send(block *pbcodec.Block)

type LauncherWrapper

type LauncherWrapper struct {
	launcher.App
	// contains filtered or unexported fields
}

func NewLauncherWrapper

func NewLauncherWrapper(app launcher.App, logger *zap.Logger, producer sarama.AsyncProducer) *LauncherWrapper

func (LauncherWrapper) Err

func (l LauncherWrapper) Err() error

func (LauncherWrapper) Run

func (l LauncherWrapper) Run() error

func (LauncherWrapper) Shutdown

func (l LauncherWrapper) Shutdown(err error)

func (LauncherWrapper) Terminated

func (l LauncherWrapper) Terminated() <-chan struct{}

func (LauncherWrapper) Terminating

func (l LauncherWrapper) Terminating() <-chan struct{}

Jump to

Keyboard shortcuts

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