cli

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Data dir (for local operations only)
	DataDir = "./fh-data"

	// GRPC Service Addresses
	BlockStreamServingAddr  = "0.0.0.0:9000"
	RelayerServingAddr      = "0.0.0.0:9010"
	MergerServingAddr       = "0.0.0.0:9020"
	FirehoseGRPCServingAddr = "0.0.0.0:9030"
	MetricsServingAddr      = "0.0.0.0:9102"

	// Blocks store
	MergedBlocksStoreURL string = "file://{fh-data-dir}/storage/merged-blocks"
	OneBlockStoreURL     string = "file://{fh-data-dir}/storage/one-blocks"

	IndexStoreURL   string = "file://{fh-data-dir}/storage/block-index"
	IndexStoreSizes        = []int{100000, 10000, 1000}

	// Protocol defaults
	FirstStreamableBlock uint64 = 0
)
View Source
var (
	RootCmd = &cobra.Command{
		Use:   "firecosmos",
		Short: "Firehose services for Cosmos blockchains",
	}
)

Functions

func GetCommonStoresURLs

func GetCommonStoresURLs(dataDir string) (mergedBlocksStoreURL, oneBlocksStoreURL string, err error)

func GetIndexStore

func GetIndexStore(dataDir string) (indexStore dstore.Store, possibleIndexSizes []uint64, err error)

func Main

func Main()

func MustReplaceDataDir

func MustReplaceDataDir(dataDir, in string) string

func VersionString

func VersionString(version, commit, date string) string

Types

type ReaderApp

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

func (*ReaderApp) Run

func (app *ReaderApp) Run() error

func (*ReaderApp) Terminated

func (app *ReaderApp) Terminated() <-chan struct{}

Jump to

Keyboard shortcuts

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