Documentation ¶
Index ¶
- func FromAddressToStrings(addresses []common.Address) []string
- func FromStringsToAddresses(addresses []string) []common.Address
- func GetDirSize(dirPath string) (float64, error)
- func GetStorageCachePath(network utils.Network, blockNumber string, addr common.Address) string
- func IsDir(dirPath string) (bool, error)
- func IsDirAndNotEmpty(dirPath string) (bool, error)
- func NatsErrHandler(nc *nats.Conn, sub *nats.Subscription, natsErr error)
- type SyncDirection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromAddressToStrings ¶
func FromStringsToAddresses ¶
func GetDirSize ¶
GetDirSize calculates the total size of a directory and its subdirectories in megabytes using concurrent goroutines.
func GetStorageCachePath ¶
func IsDirAndNotEmpty ¶ added in v1.0.0
IsDirAndNotEmpty checks if a given path exists, is a directory, and is not empty.
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
Click to show internal directories.
Click to hide internal directories.