Documentation
¶
Index ¶
- Constants
- func CreateSha256Checksum(input []byte) (hash string)
- func DecompressGzip(input []byte) ([]byte, error)
- func GetChainRest(chainId, chainRest string) string
- func GetFromUrl(url string) ([]byte, error)
- func GetFromUrlWithBackoff(url string) (data []byte, err error)
- func IsFileGreaterThanOrEqualTo100MB(filePath string) (bool, error)
- func LoadConfig(homePath string) (*cfg.Config, error)
- func ParseSnapshotFromKey(key string) (height int64, chunkIndex int64, err error)
Constants ¶
View Source
const ( ChainIdMainnet = "kyve-1" ChainIdKaon = "kaon-1" ChainIdKorellia = "korellia" RestEndpointMainnet = "https://api-eu-1.kyve.network" RestEndpointKaon = "https://api-eu-1.kaon.kyve.network" RestEndpointKorellia = "https://api.korellia.kyve.network" RestEndpointArweave = "https://arweave.net" RestEndpointBundlr = "https://arweave.net" RestEndpointKYVEStorage = "https://storage.kyve.network" )
View Source
const ( KSyncRuntimeTendermint = "@kyvejs/tendermint" KSyncRuntimeTendermintBsync = "@kyvejs/tendermint-bsync" KSyncRuntimeTendermintSsync = "@kyvejs/tendermint-ssync" )
View Source
const ( DefaultChainId = ChainIdMainnet DefaultBackupPath = "~/.ksync/backups" DefaultMetricsServerPort = 8080 DefaultSnapshotServerPort = 7878 )
View Source
const ( BundlesPageLimit = 100 BlockBuffer = 300 PruningInterval = 100 SnapshotPruningAheadFactor = 3 SnapshotPruningWindowFactor = 6 BackoffMaxRetries = 10 )
Variables ¶
This section is empty.
Functions ¶
func CreateSha256Checksum ¶ added in v1.0.0
func DecompressGzip ¶
func GetChainRest ¶ added in v1.0.0
func GetFromUrl ¶ added in v1.0.0
GetFromUrl tries to fetch data from url
func GetFromUrlWithBackoff ¶ added in v1.0.0
GetFromUrlWithBackoff tries to fetch data from url with exponential backoff
func IsFileGreaterThanOrEqualTo100MB ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.