utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfTestnetOrTestnetNetworkFlag

func CheckIfTestnetOrTestnetNetworkFlag() bool

func GetAllSupportedNetworks

func GetAllSupportedNetworks() string

func GetDefaultLocalMappedContainerName

func GetDefaultLocalMappedContainerName(network string) (string, bool)

func GetFiftysixDockerhubContainerName

func GetFiftysixDockerhubContainerName(network string) (string, bool)

func GetNetworkRequiredDataSize

func GetNetworkRequiredDataSize(network string) (int, bool)

func GetNetworkRequiredSnapshotSize

func GetNetworkRequiredSnapshotSize(network string) (int, bool)

func GetNodevinDataDir

func GetNodevinDataDir() (string, error)

Returns path to the user's nodevin data directory (~/.nodevin/data)

func GetSizeDescription

func GetSizeDescription(size int64) string

func GetStartMessage

func GetStartMessage(network string) (string, bool)

func NetworkContainerMap

func NetworkContainerMap() map[string]string

func NetworkDefaultRPCPorts

func NetworkDefaultRPCPorts() map[string]int

Types

type NetworkInfo

type NetworkInfo struct {
	ContainerName string
	RPCPort       int
	DataSize      int
	SnapshotSize  int
	StartMessage  string
}

Jump to

Keyboard shortcuts

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