helpers

package
v0.9.9-rc4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAddressToStrings

func FromAddressToStrings(addresses []common.Address) []string

func FromStringsToAddresses

func FromStringsToAddresses(addresses []string) []common.Address

func GetDirSize

func GetDirSize(dirPath string) (float64, error)

GetDirSize calculates the total size of a directory and its subdirectories in megabytes using concurrent goroutines.

func GetStorageCachePath

func GetStorageCachePath(network utils.Network, blockNumber string, addr common.Address) string

func NatsErrHandler

func NatsErrHandler(nc *nats.Conn, sub *nats.Subscription, natsErr error)

Types

type SyncDirection

type SyncDirection string
var (
	HeadSyncDirection    SyncDirection = "head"
	ArchiveSyncDirection SyncDirection = "archive"
)

func (SyncDirection) String

func (s SyncDirection) String() string

Jump to

Keyboard shortcuts

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