Documentation
¶
Index ¶
- func NewToolsLogsCmd(logger *zap.Logger) *cobra.Command
- func NewToolsLogsConnectionsCmd(logger *zap.Logger) *cobra.Command
- func NewToolsStoreSizeCmd(logger *zap.Logger) *cobra.Command
- func NewToolsSubstreamsCmd[B firecore.Block](chain *firecore.Chain[B], logger *zap.Logger) *cobra.Command
- type StoreSizeQuerier
- type StoreSizes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewToolsLogsCmd ¶ added in v1.13.1
NewToolsLogsCmd returns the parent "logs" command for Substreams logs analysis tools
func NewToolsLogsConnectionsCmd ¶ added in v1.13.1
NewToolsLogsConnectionsCmd returns the "connections" subcommand
Types ¶
type StoreSizeQuerier ¶
type StoreSizeQuerier interface {
// GetStoreSizes returns both total compressed size and latest file's uncompressed size
GetStoreSizes(ctx context.Context, path string) (*StoreSizes, error)
}
StoreSizeQuerier provides an interface for getting the total size of files in a storage location. This is structured to be easily portable back to dstore.
func NewStoreSizeQuerier ¶
func NewStoreSizeQuerier(storeURL string) (StoreSizeQuerier, error)
NewStoreSizeQuerier creates an appropriate size querier based on the storage URL
type StoreSizes ¶
type StoreSizes struct {
TotalCompressed int64 // Total size of all files (compressed)
LiveUncompressed *int64 // Uncompressed size from latest file metadata (nil if not available)
LiveCompressed int64 // Compressed size of latest file only
LatestFile string // Name of the latest file
}
StoreSizes contains the compressed (total) and uncompressed (live) sizes
Source Files
¶
Click to show internal directories.
Click to hide internal directories.